Forums Register Login

Where is the Problem ?

+Pie Number of slices to send: Send
HI. This is third time posting this message but did not get the answer.

HI. I have got one small problem.When compiling servlet class , i got this problem. Servlet and java .class files are in same folder named src. Both are compiled individually without errors.It happens when i instantiate Hello file in Ch1Servlet.

Compiling command are :

C:\apache-tomcat-6.0.14\webapps\ch1>javac -classpath C:\apache-tomcat-6.0.14\lib\servlet-api.jar src\Ch1Servlet.java

Ch1Servlet.java:9: cannot find symbol
symbol : class Hello
location: class Ch1Servlet
Hello he = new Hello();
^
Ch1Servlet.java:9: cannot find symbol
symbol : class Hello
location: class Ch1Servlet
Hello he = new Hello();
^
2 errors
+Pie Number of slices to send: Send
Please do not post the same question more than once. Please continue any discussion in your original post.
Trust God, but always tether your camel... to this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


Reply locked
This thread has been viewed 957 times.
Similar Threads
Error showing in Servlet File.
Error while compiling
Servlet basic program
problem with TOMCAT_HOME configration
Error showing when compiling Servlet .
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:16:39.