Won't compile...

jhazard
jhazard used Ask the Experts™
on
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:\jdk1.2.2\lib\servlet.jar;C:\tomcat\jakarta-tomcat-3.3\webapps\desres\WEB-INF\classes\com\desres\beans;C:\tomcat\jakarta-tomcat-3.3\webapps\desres\WEB-INF\classes\com\desres\db;
What am I doing wrong?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
Sound like javac not on your path. Type 'PATH' to see.
Top Expert 2016
Commented:
>>
C:\jdk1.2.2\bin
>>

That doesn't need to be there. It should be in the PATH though.

Commented:
>> 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

Commented:
sorry CEHJ - didn't see your comment

Author

Commented:
Perfect, thank you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial