Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot compile it

 
krishna akula
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
While trying to compile my servlet using tomcat: iam getting the following error:
cannot read: Helloworld.java.
Kris.
 
k b
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to climb to the directory where thr HelloWorld.java source resides and try compiling from there.
 
krishna akula
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes ,i did .
my helloworld is in c:\raji;
and iam compiling from there as
c:\raji\serve\helloworld.java
but there is an error
cannot read helloworld.java
 
k b
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your HelloWorld is in c:/raji, why are you trying to compile from c:/raji/server/. May be can try from c:/raji.
Thanks.
 
krishna akula
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry,my helloworld is in c:\raji\serve;
and iam compiling from there only.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic