Win a copy of Head First Android this week in the Android forum!
  • Post Reply 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

unable to compile servelt

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
e:\tomcat4\webapps\examples\WEB-INF\classes javac HelloWorldExample.java
I get bad command or file name.
My classpath info
SET CLASSPATH=.;
SET CLASSPATH=%CLASSPATH%;e:\java\lib\tools.jar;E:\java\lib\ext;E:\java\lib;E:\tomcat4\common\lib\servlet.jar
SET JAVA_HOME=e:\java
SET CATALINA_HOME=e:\tomcat4
SET PATH=e:\java\bin
why?
[ February 18, 2002: Message edited by: shan java ]
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not related, but take that trailing semicolon of your first CLASSPATH statement.

It looks like you've set your PATH to include the jdk, so how about: what version of windows?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IF you did:
e:\tomcat4\webapps\examples\WEB-INF\classes javac HelloWorldExample.java
I get bad command or file name.
The only possible cause is that your PATH does not include the directory where javac.exe resides.
 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you specify the classpath, the syntax is:
javac -classpath <source files>
First try javac alone, you should get something back, if you don't then your classpath needs to be updated.
 
reply
    Bookmark Topic Watch Topic
  • New Topic