OSLC LAB 3, adding all the html to the Servlet
![]() Im following this guide: https://jazz.net/wiki/pub/Main/OSLCWorkshopDownload/2012-11-26-OSLC-workshop.pdf
On page 77 I copy all the html code to my ListOfProjectAreas folder where the guide suggested it to be. But however in next step when i copy the packages i still end up with three errors. (I cant upload image to the forum so you can reach the error here) http://imgur.com/a/cmOqD
How do i get rid of the error: "Element cannot be resolved to a type" and "PrintWriter cannot be resolved to a typ".
Thanks in advance.
|
2 answers
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Feb 23 '17, 4:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER The errors are missing class imports or missing dependencies. If the quickfix on the error does not show to import the class, check the dependencies. I have not done this workshop for a while, so I can't tell you how to do that. Usually it is in the Build Path. The pages before mention some libraries that need to be specified. Maybe you are missing one, or classes are moved to another library. You would be able to see the full qualified name of the class maybe in the source project. |
![]() Importing these two solved my problems.
import java.io.PrintWriter;
import org.w3c.dom.*;
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.