Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • 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.
 
Let nothing stop you! Not even this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!