Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with class path

 
tushar panda
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .

--TUSHAR
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can add these paths to environment variable.

On Windows:
My Computer > Properties > Advanced > Environment Variable
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic