Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Error showing when compiling Servlet .

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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
 
Sheriff
Posts: 67553
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.
 
Hold that thought. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic