This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Can Java files be compiled using JRE if we don't have JDK? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Can Java files be compiled using JRE if we don Watch "Can Java files be compiled using JRE if we don New topic
Author

Can Java files be compiled using JRE if we don't have JDK?

Raja Mario
Greenhorn

Joined: Sep 24, 2008
Posts: 7
Hi,
Is it possible to compile the *.java class and generate the corresponding .class file if I have only JRE instead of JDK? How by default Eclipse compliles the Java files?
Thanks
Raja
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
A JRE is not sufficient to compile files, as it does not contain a compiler (in contrast to the JDK). Eclipse, on the other hand, comes with its own compiler.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Can Java files be compiled using JRE if we don't have JDK?
 
It's not a secret anymore!