Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Raja Mario
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic