Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get JRE/JDK with matching source?

Tags:

java

I'd like to get at least one JRE/JDK level on my Windows machine where I have the JRE/JDK source that matches the exact level of the JRE/JDK. My purpose is to be able to go into the system classes while debugging. Any suggestions about how to do this? Thanks in advance.

like image 816
Chris Markle Avatar asked Sep 29 '08 21:09

Chris Markle


People also ask

Does JDK and JRE need to be same version?

The JDK includes the JRE, so you do not have to download both separately. To understand the version-string scheme that is used to distinguish various JDK and JRE releases, see Version-String Format. JDK, JRE, and Server JRE can be installed on the following platforms: Oracle Solaris.

Where can I find JRE in JDK?

The JRE Installer is located on the Java SE Runtime Environment 9 Downloads page. In a browser, go to the Java SE Runtime Environment 9 Downloads page. The following JRE installers are available for you to download: Windows Offline: jre-9.

Can JDK and JRE be different versions?

The JDK and JRE versions can be different on the same computer. Multiple JDK and JRE versions are allowed on the same computer; it is better to find out which version is configured in the system classpath to run or compile the Java program.


1 Answers

Most of the useful source will be in the src.zip file in your JDK.

You can get source up to jdk 6u3 from jdk6.dev.java.net. On Linux you can get OpenJDK source and packages from openjdk.java.net.

like image 152
Tom Hawtin - tackline Avatar answered Oct 01 '22 20:10

Tom Hawtin - tackline