When you type 'java -version', you see three version numbers - the java version (on mine, that's ' 1.6.007'), the Java SE Runtime Environment version ('build 1.6.007-b06'), and the HotSpot version (on mine, that's ' build 10.0-b23, mixed mode'). I suspect the '11.0' you are seeing is the HotSpot version. Update: HotSpot is (or used to be, now they seem to use it to mean the whole VM) the just-in-time compiler that is built in to the Java Virtual Machine.
God only knows why Sun gives it a separate version number. JDK - Java Development Kit. JRE - Java Runtime Environment.
Java SE - Java Standard Edition SE defines a set of capabilities and functionalities; there are more complex editions (Enterprise Edition – EE) and simpler ones (Micro Edition – ME – for mobile environments). The JDK includes the compiler and other tools needed to develop Java applications; JRE does not.
So, to run a Java application someone else provides, you need JRE; to develop a Java application, you need JDK. Edited: As Chris Marasti-Georg pointed out in a comment, you can find out lots of information at Sun's web site, and in particular from the section, (2nd option, Java SE Development Kit (JDK) 6 Update 10).
Edited 2011-04-06: The world turns, and Java is now managed by Oracle, which bought Sun. Later this year, the sun.com domain is supposed to go dark. The new page (based on a redirect) is this page at the Oracle Tech Network. (See also.) Edited 2013-01-11: And the world keeps on turning (2012-12-21 notwithstanding), and lo and behold, JRE 6 is about to reach its end of support.
Java Se 6 1 6 0 51 Download Chrome. Java Runtime Environment (JRE) - Free download and software reviews. Java SDK SE 1.7.0.30: Java Platform, Standard Edition (Java SE) le permite desarrollar y desplegar aplicaciones Java en equipos de. Downloaded this, ran it, Firefox restarted and loaded java. Thank you CNET, for hosting this.
Says no more public updates to Java 6 after February 2013. Within a given version of Java, this answer remains valid. JDK is the Java Development Kit, JRE is the Java Runtime Environment, Java SE is the standard edition, and so on. But the version 6 (1.6) is becoming antiquated. Edited 2015-04-29: And with another couple of revolutions around the sun, the time has come for the end of support for Java SE 7, too. In April 2015, Oracle that it was no longer providing public updates to Java SE 7.
The tentative end of public updates for Java SE 8 is March 2017, but that end date is subject to change (later, not earlier). This might help someone: I am installing the latest Java on my system for development, and currently it's Java SE 7. Now, let's dive into this 'madness', as you put it. All of these are the same (when developers are talking about Java for development):. Java SE 7. Java SE v1.7.0. Java SE Development Kit 7 Starting with Java v1.5:.
v5 = v1.5. And we can assume this will remain for future versions. Next, for developers, download JDK, not JRE. JDK will contain JRE. If you need JDK and JRE, get JDK. Both will be installed from the single JDK install, as you will see below.
A Brief and Maybe Incorrect History of Java Versions. Java is a platform. It consists of two products - the software development kit, and the runtime environment. When Java was first released, it was apparently just called Java.
If you were a developer, you also knew the version, which was a normal '1.0' and later a '1.1'. The two products that were part of the platform were also given names:.
JDK - 'Java Development Kit'. JRE - 'Java Runtime Environment'. Apparently the changes in version 1.2 so significant that they started calling the platform as Java 2.
The default 'distribution' of the platform was given the moniker 'standard' to contrast it with its siblings. So you had three platforms:. 'Java 2 Standard Edition (J2SE)'. 'Java 2 Enterprise Edition (J2EE)'. 'Java 2 Mobile Edition (J2ME)'.
The JDK was officially renamed to 'Java 2 Software Development Kit'. When version 1.5 came out, the suits decided that they needed to 'rebrand' the product. So the Java platform got two versions - the product version '5' and the developer version '1.5' (Yes, the rule is explicitly mentioned - 'drop the '1.'
![Java Se 6 1 6 0 51 Download Chrome Java Se 6 1 6 0 51 Download Chrome](/uploads/1/2/5/4/125452765/253738719.png)
However, the '2' was retained in the name. So now the platform is officially called 'Java 2 Platform Standard Edition 5.0 (J2SE 5.0)'. The suits also realized that the development community was not picking up their renaming of the JDK. But instead of reverting their change, they just decide to drop the '2' from the name of the individual products, which now get be 'J2SE Development Kit 5.0 (JDK 5.0)' and 'J2SE Runtime Environment 5.0 (JRE 5.0)'.
When version 1.6 come out, someone realized that having two numbers in the name was weird. So they decide to completely drop the 2 (and the '.0' suffix), and we end up with the 'Java Platform, Standard Edition 6 (Java SE 6)' containing the 'Java SE Development Kit 6 (JDK 6)' and the 'Java SE Runtime Environment 6 (JRE 6)'.
Version 1.7 did not do anything stupid. If I had to guess, the next big change would be dropping the 'SE', so that the cycle completes and the JDK again gets to be called the 'Java Development Kit'. Notes. For simplicity, a bunch of trademark signs were omitted. So assume Java™, JDK™ and JRE™.
SO seems to have trouble rendering nested lists. References.
Epilogue Just drop the '1.' From versions printed by javac -version and java -version and you're good to go.
I am trying to use as my all-in-one tool edit, run, compile, etc. I have installed, and I have setup my path variable to the./bin directory. When I run my 'Hello world' in Notepad, I get this message: java.lang.UnsupportedClassVersionError: testhelloworld: Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source). I think the problem here is about versions; some version of Java may be old or too new. How do I fix it?. Should I install the JDK, and setup my path variable to the JDK instead of JRE?.
What is the difference between the PATH variable in JRE or JDK? The version number shown describes the version of the JRE the class file is compatible with. The reported major numbers are: Java SE 11 = 55, Java SE 10 = 54, Java SE 9 = 53, Java SE 8 = 52, Java SE 7 = 51, Java SE 6.0 = 50, Java SE 5.0 = 49, JDK 1.4 = 48, JDK 1.3 = 47, JDK 1.2 = 46, JDK 1.1 = 45 (Source: ) To fix the actual problem you should try to either run the Java code with a newer version of Java JRE or specify the target parameter to the Java compiler to instruct the compiler to create code compatible with earlier Java versions. For example, in order to generate class files compatible with Java 1.4, use the following command line: javac -target 1.4 HelloWorld.java With newer versions of the Java compiler you are likely to get a warning about the bootstrap class path not being set. More information about this error is available in blog post. This may occur when compiler source is set in non-compliance with currently compiling JRE/JDK.
For example i found the below values from eclipse.settings folder, org.eclipse.jdt.core.compiler.compliance=1.7, org.eclipse.jdt.core.compiler.source=1.7, org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7. And my compiler was 1.6.032. The problem was resolved after changing the values to 1.6.
The issue originated after i copied the project from a different workspace where i was using JDK 1.7:( – Dec 22 '14 at 6:22. This error means you're trying to load a Java 'class' file that was compiled with a newer version of Java than you have installed.
For example, your.class file could have been compiled for JDK 7, and you're trying to run it with JDK 6. So the solution is to either:. Upgrade your Java runtime or.
Recompile the class if you have the source, using your local Java compiler (if you have one). Javac FileName.java For developers, this can happen if another developer checks in a.class file, and they've got a newer version of java than you have! You are trying to run your program with a Java version that does not support the version in which the code was compiled.
So basically you must have compiled your code with a higher version and trying to run it using a lower version. As you are getting Unsupported major.minor version 51.0 and version 51.0 corresponds to J2SE 7 you have most probably compiled your code in Java 7 and trying to run it using a lower version.
Check what java -version displays. It should be the Java 7 version.
If not make appropriate changes in the PATH/JAVAHOME. Or you can compile with the same version you are trying to run the code. If the configurations are confusing you can always give absolute path /home/user/jdk1.7.011/bin/javac and /home/user/jdk1.7.011/bin/java. I had a similar situation on Mac, and the following process worked for me: In the terminal, type vi /.profile Then add this line in the file, and save export JAVAHOME=/Library/Java/JavaVirtualMachines/jdk.jdk/Contents/Home where version is the one on your computer, such as 1.7.025.
Exit the editor, then type the following command make it become effective source /.profile Then type java -version to check the result java -version What is.profile file?.profile file is a hidden file. It is an optional file which tells the system which commands to run when the user whose profile file it is logs in. For example, if my username is bruno and there is a.profile file in /Users/bruno/, all of its contents will be executed during the log-in procedure. The most common issue is misconfiguration of your JAVAHOME variable which should point to the right Java Development Kit library, if you've multiple installed. To find where SDK Java folder is located, run the following commands: jrunscript -e 'java.lang.System.out.println(java.lang.System.getProperty('java.home'));' Debian/Ubuntu To check which java (openjdk) you've installed, check via: dpkg -l 'openjdk.' grep ^i or: update-java-alternatives -l To change it, use: update-alternatives -config java Prefix with sudo if required.
To select the alternative java version. Or check which are available for install: apt-cache search ^openjdk Prefix with sudo if required. Then you can install, for example: apt-get install openjdk-7-jre Prefix with sudo if required.
Fedora, Oracle Linux, Red Hat Install/upgrade appropriate package via: yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel The java-1.7.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.7.0-openjdk-devel package. BSD There is an OpenJDK 7 package in the FreeBSD Ports collection called which probably needs to be reconfigured. Windows Just install appropriate Java SE Development Kit library from the or install Jenkins If you're experiencing this issue with Jenkins, see:.
However selecting the right version of Java (newer) with update-alternatives should work. I have faced the same problem when I was working with an script to build my application. I use for my application development, and I changed the compiler version in build properties of the project. But that didn't work for me. Then I found out that I can provide the compiler version in the Ant script.
I modified the Ant script at the section where it compile Java files. This worked for me to resolve the unsupported major minor issue.