Bookmark Topic Watch Topic
  • New Topic

Where is the Problem ?

 
Chandrasekhar Mangipudi
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once. Please continue any discussion in your original post.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!