| Author |
Not able to run java
|
Samarth Gupta
Greenhorn
Joined: Jul 12, 2006
Posts: 4
|
|
|
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
Joined: Feb 26, 2005
Posts: 2036
|
|
|
What is the error message?
|
 |
Keith Lynn
Ranch Hand
Joined: Feb 07, 2005
Posts: 2341
|
|
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
Joined: Jul 12, 2006
Posts: 4
|
|
|
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
Joined: Feb 07, 2005
Posts: 2341
|
|
|
The JRE does not contain javac. You need to download the JDK.
|
 |
Samarth Gupta
Greenhorn
Joined: Jul 12, 2006
Posts: 4
|
|
|
shld i need to install it again? shld i download it from sun.com
|
 |
Keith Lynn
Ranch Hand
Joined: Feb 07, 2005
Posts: 2341
|
|
|
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
|
 |
 |
|
|
subject: Not able to run java
|
|
|