Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Requirement for setting JRE path in windows7, like setting path for JDK

Should I have to add/set the path for JRE as well like I did for JDK 1.7? If yes, then please explain how. If no then why it is not necessary. (I am using windows 7, 64 bit)

Thank you.

like image 624
AbdulAziz Avatar asked Oct 09 '22 20:10

AbdulAziz


1 Answers

The "JDK" is the Java Development Kit. I.e., the JDK is bundle of software that you can use to develop Java based software.

The "JRE" is the Java Runtime Environment. I.e., the JRE is an implementation of the Java Virtual Machine which actually executes Java programs. Without JRE one can only compile the application but cannot run the application.

Since JRE contains the JVM which executes the byte code generated from the javac compiler, you need to add your JRE path to JAVA_HOME variable from the environment variables. Here's the tutorial for doing so: http://java.com/en/download/help/path.xml

like image 98
Korhan Ozturk Avatar answered Oct 13 '22 10:10

Korhan Ozturk