Link to home
Start Free TrialLog in
Avatar of jhazard
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:\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?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Sound like javac not on your path. Type 'PATH' to see.
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Venci75
Venci75

>> 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
sorry CEHJ - didn't see your comment
Avatar of jhazard

ASKER

Perfect, thank you.