Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

iview Java Cookie and Classpath

I am writing an iview that needs to set a cookie.

I tried:

Cookie SapCookie = new Cookie();



The DevStudio gives the error:

"Cannot find the class file for javax.servlet.http.Cookie"

But adding "import javax.servlet.http.* does not help.

Any help is awarded

thanks -hs

(As you can tell, writing java iviews is probably not my core competence, so be gentle)

Former Member replied

Hi Holger,

It is not sufficient if u add the import statement alone. U have to include the appropriate jar file to the project. Add the servlet jar (eclipse/plugins/com.tssap.ext.libs.j2ee_1.3/lib/servlet.jar) in the eclipse directory to your project.


Harini S

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question