jhazard
asked on
Won't compile...
Hi
I have just set up my pc to use jdk1.2.2 and tomcat 3.3.
I have a file SimpleSender.java that I want to complile so I open up my ms-dos prompt (I'm using windows 98) and cd to the correct directory, then type javac SimpleSender.java
The error I get is bad command or file name. My classpath is set in my autoexec.bat file and is as follows:
Set CLASSPATH=C:\jdk1.2.2\bin; C:\jdk1.2. 2\lib;C:\j dk1.2.2\li b\servlet. jar;C:\tom cat\jakart a-tomcat-3 .3\webapps \desres\WE B-INF\clas ses\com\de sres\beans ;C:\tomcat \jakarta-t omcat-3.3\ webapps\de sres\WEB-I NF\classes \com\desre s\db;
What am I doing wrong?
I have just set up my pc to use jdk1.2.2 and tomcat 3.3.
I have a file SimpleSender.java that I want to complile so I open up my ms-dos prompt (I'm using windows 98) and cd to the correct directory, then type javac SimpleSender.java
The error I get is bad command or file name. My classpath is set in my autoexec.bat file and is as follows:
Set CLASSPATH=C:\jdk1.2.2\bin;
What am I doing wrong?
Sound like javac not on your path. Type 'PATH' to see.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> Set CLASSPATH=C:\jdk1.2.2\bin; ...
SET PATH=C:\jdk1.2.2\bin;....
there is no need to add this directory to the class path
SET PATH=C:\jdk1.2.2\bin;....
there is no need to add this directory to the class path
sorry CEHJ - didn't see your comment
ASKER
Perfect, thank you.