• Post Reply Bookmark Topic Watch Topic
  • New Topic

unable to compile servelt

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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 ]
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • 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?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • 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.
 
Francois Bourgault
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!