It's all about the answers!

Ask a question

OSLC LAB 3, adding all the html to the Servlet


Staffan Solin (1319) | asked Feb 22 '17, 7:10 a.m.

 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



permanent link
Ralph Schoon (63.1k33645) | 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.


permanent link
Staffan Solin (1319) | answered Feb 23 '17, 7:13 a.m.

 Importing these two solved my problems.

import java.io.PrintWriter;
import org.w3c.dom.*;

Your answer


Register or to post 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.