• Post Reply Bookmark Topic Watch Topic
  • New Topic

jre is installed instead of jdk in jdk-8u31-windows-x64?  RSS feed

 
Matt Taylor
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I want to install a jdk on my new os but everytime I install when I type java -version, it says:

java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

My installer only installs jre and not the whole JDK.
I am using the installer jdk-8u31-windows-x64.


 
Liutauras Vilda
Sheriff
Posts: 4928
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you know that installs only jre? Who makes you think like that?

Check javac -version
 
Campbell Ritchie
Marshal
Posts: 56595
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use JDK8u31, since 8u45 is now available.
 
Liutauras Vilda
Sheriff
Posts: 4928
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, Campbell is absolutely right, after you install 8u45, you suppose to get similar to:
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JRE is included with the JDK.

When you use the java command to run a Java program, the JRE that is included with the JDK is being used.

The JDK = the JRE + tools such as the Java compiler.

The output you get is normal, there's nothing wrong.
 
Matt Taylor
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, thank you very much for your response. I did not realize that they also installed and created a folder for jdk alongside jre directory.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!