This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Not able to run java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Not able to run java" Watch "Not able to run java" New topic
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: 2046
What is the error message?
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
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: 2367
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: 2367
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to run java
 
Similar Threads
I've bought Sybex Java 2 Certification Virtual Trainer
Wrapper Classes
anyone used marathon?
Help with running my first program.
Aboutt Daemon Threads