java Servlet Compilation
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1 • Share
java Servlet Compilation
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
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
sharmila farooqi- Monstars
- Posts : 35
Join date : 2011-05-29
Re: java Servlet Compilation
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
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
Vuhelper- Deep Bench
- Posts : 97
Join date : 2011-05-29
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue May 28, 2024 12:44 pm by ali001
» FVS Forex - Live Forex Signals
Mon May 27, 2024 9:54 am by ali001
» MedidexConnect Pharmacist Chat
Wed May 22, 2024 1:32 pm by ali001
» FISH PBs
Mon May 20, 2024 11:56 am by ali001
» Watchat Streaming World IPTV
Mon May 20, 2024 6:26 am by ali001
» Used Car Auctions USA
Sat May 18, 2024 10:16 pm by ali001
» Amuse - Become Smarter
Wed May 15, 2024 10:50 am by ali001
» Fort Lock
Sat May 04, 2024 11:49 am by ali001
» house disrepair claims
Thu May 02, 2024 4:29 pm by Ibad Khan Buledi