Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

java Servlet Compilation

View previous topic View next topic Go down

GMT + 3 Hours java Servlet Compilation

Post by sharmila farooqi Sun May 29, 2011 5:39 pm

was not successful. My tomcat server is running. I also tried it it Netbeans 5.0, but not able to compile it. Manually i set the CLASSPATh variable in My computers properties, so that i can compile but not. What to do?
commant prompts gives following error.
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\myapp\WEB_INF\cla sses>javac MyServlet.java MyServlet.java:2: package javax.servlet does not exist import javax.servlet.*; ^ MyServlet.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ MyServlet.java:4: cannot find symbol symbol: class HttpServlet
avatar
sharmila farooqi
Monstars
Monstars

Posts : 35
Join date : 2011-05-29

Back to top Go down

GMT + 3 Hours Re: java Servlet Compilation

Post by Vuhelper Sun May 29, 2011 5:40 pm

Make sure that you have set the class path correctly.

Your class path variable should point to lib folder, in newer versions there is no common. So classpath should be with out this.

If the issue remains sent me the snapshot of your environment variables
avatar
Vuhelper
Deep Bench
Deep Bench

Posts : 97
Join date : 2011-05-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum