• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What difference does it make if JRE is not there in my system ?

 
Vikrant
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it make any difference if I have the JDK installed on my machine but not JRE ?
If yes, kindly let me know.
Thanx.
 
Shriram Shivakumar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDK, Java Development Kit, helps you in compiling, running, debugging,profiling you Java applications/applets. Basically, it has got all the tool required for developing a Java application/applet. JRE, Java Runtime Environment, provides you with the tools required to mainly execute your java applications. ie., your .class file.
When you deploy your Java code, all you need is a JRE(for the deployment platform) to execute it.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Everything in the JRE is also part of the JDK, so you're not missing anything. The other way around though, there would be a big difference.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is one small "gotcha", to beware of. Some JREs provide a n executable called "jre" to be called instead of the more standard "java" to run your applications. Scripts or programs written to use this probably won't work if you only have a JDK or SDK installed. It's simple to change "jre" to "java" if you have access to the source of the invoking program, but it is irritating.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic