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
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