File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes problem with class path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "problem with class path" Watch "problem with class path" New topic

problem with class path

tushar panda
Ranch Hand

Joined: Feb 16, 2009
Posts: 133
after starting my computer the very first java problem does not compile and gives the error
"javac is not a recognised command" .

after i set the paths (according to my system) :

set PATH="D:\Program Files\Java\jdk1.6.0_14\bin";%PATH%
set JAVA_HOME=D:\Program Files\Java\jdk1.6.0_14
set CLASSPATH=.;C:\apache-tomcat-6.0.20\lib\servlet-api.jar;C:\apache-tomcat-6.0.20\lib\jsp-api.jar;C:\apache-tomcat-6.0.20\lib\el-api.jar;

i can run any program till i restart it again . i am feeling horrible , because each time i start my system this thing happens .
please i need a solution to this .


Do Right , Fear No Man
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
You can add these paths to environment variable.

On Windows:
My Computer > Properties > Advanced > Environment Variable
I agree. Here's the link:
subject: problem with class path