Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to run java

 
Samarth Gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to run javac on XP but unable to do it I have set the path and classpath variables but still its not running. Can someone help me out plz.
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the error message?
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you be more specific?

Are you getting "javac is not a recognized program" or something like that, or are you geting a NoClassDefFoundError?
 
Samarth Gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javac is not a recognized as an internal or external command, operable or batch file . I have set the path as C:\Program Files\java\jre1.5.0_06\bin; and classpath also.
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JRE does not contain javac. You need to download the JDK.
 
Samarth Gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shld i need to install it again? shld i download it from sun.com
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well if you only have the JRE, you won't be able to compile programs. You need to download the JDK. You can find the latest version at java.sun.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic