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
Similar topics
» Java Tutorials For Beginners (From Basic to Advanced Level) Read more: Java Tutorial
» What is difference b/w java Buzzwords and java Keywords?
» what is difference b/w Java and Java Script?
» Java is to Write Once Run Anywhere thats what java language
» Deployment Flow / Process from netBean IDE to tomcat servlet container
» What is difference b/w java Buzzwords and java Keywords?
» what is difference b/w Java and Java Script?
» Java is to Write Once Run Anywhere thats what java language
» Deployment Flow / Process from netBean IDE to tomcat servlet container
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
|
|
Sat May 04, 2024 11:49 am by ali001
» house disrepair claims
Thu May 02, 2024 4:29 pm by Ibad Khan Buledi
» Bounce n Bang: Physics puzzler
Thu May 02, 2024 11:39 am by ali001
» AIChatSY - AIChatbot Assistant
Wed May 01, 2024 10:48 am by ali001
» Storybook Magic App
Tue Apr 30, 2024 7:06 pm by ali001
» Flower Book Match3 Puzzle Game
Tue Apr 30, 2024 12:17 pm by ali001
» Avian Influenza Symptom in Chickens "Bird Flu H5N1 Virus" Vet learning materials, Poultry Farming
Sat Apr 27, 2024 9:57 am by Ibad Khan Buledi
» Aloha Planner - Note-Taker
Thu Apr 11, 2024 4:52 pm by ali001
» Streaming Guide Film TV Series
Tue Apr 09, 2024 9:39 pm by ali001