Java versions on win 7 - java

I have JDK 8 with update 5 installed on my Windows 7 machine. I went to a Java version verification site, which asks me to download a version 7 update 60 of a plugin. I am just confused, because JDK 8 should be picked up by the browser and it's not. I have tried both Chrome and IE . Did I miss anything?

Why is Java 8 not available on java.com?
Java 8 is the latest release for Java that contains new features, enhancements and bug fixes to improve efficiency to develop and run Java programs.
The new release of Java is first made available to developers to ensure no major problems are found before we make it available on the java.com website for end users to download. If you are interested in trying Java 8 it can be downloaded from Oracle.com.
Read more at:
See http://www.java.com/en/download/faq/java8.xml

Related

Why is JRE 10 outdated and JRE 8 up-to-date?

I (as a non-Java kind of guy) am puzzled that my local JRE 10 installation required an update, but when updating, I get the JRE 8! This is even reported on https://java.com/en/download/more_info10.jsp:
Users who installed JRE 9 and/or JRE 10 (non Long-Term Support Releases) should remove those out-of-date versions of Java.
I would understand if JRE 11 would be the current version, but no, it's JRE 8:
If you still require Java on your computer download the latest release of JRE 8 available at java.com, which is the only currently supported major release of Java targeting desktop deployment.
How can this be?
The explanation is right there on that page you linked and quoted.
Relevant section highlighted.
"desktop deployment".
If you still require Java on your computer download the latest release
of JRE 8 available at java.com, which is the only currently supported
major release of Java targeting desktop deployment.
Short answer:
Java 9 and 10 are not a Long Term Support (LTS) release, and have expired.
Java 8 commercial supports end January 2019, public updates for personal use through December 2020 though.
Java 11 is the current and is also a LTS support release.
So todays choice is between java 8 and 11. But 11 removed applets and browser integration and other desktop technologies (JavaFX, java webstart etc). See list below and link to source. See also the Oracle white paper of 2018-03, Java Client Roadmap Update.
Further details:
Oracle has decided to stop releasing several variants of JRE on their own. As well as requiring a license for production use for newer releases. For example 32bit variants are no more, traditional desktop variants not available as there is no no java webstart and javafx is separated out since jdk 11+ etc, Oracle is more focusing on 64bit and server.
Put together with the fact that 9 and 10 are not Long term support releases (and they have expired) this leaves you with the choice of Java 8 for this particular use case for now.
JDK public updates for java 8 from oracle will end in January 2019 (and December 2020 for personal use) so at least until then is the current desktop java version of choice, from Oracle that is.
The current version of java 11, is only available as a 64bit JDK (development kit download) from oracle. No suitable desktop JRE (just the runtime).
Removed in JDK 11 release from Oracle:
Important Changes and Information
The following are some important changes in and information about this release. In some cases, additional details about the changes described below are provided in these Release Notes.
The deployment stack, required for Applets and Web Start Applications, was deprecated in JDK 9 and has been removed in JDK 11.
Without a deployment stack, the entire section of supported browsers has been removed from the list of supported configurations of
JDK 11.
Auto-update, which was available for JRE installations on Windows and macOS, is no longer available.
In Windows and macOS, installing the JDK in previous releases optionally installed a JRE. In JDK 11, this is no longer an option.
In this release, the JRE or Server JRE is no longer offered. Only the JDK is offered. Users can use jlink to create smaller custom
runtimes.
JavaFX is no longer included in the JDK. It is now available as a separate download from openjfx.io.
Source: https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html
Simple: Oracle's own support roadmap lists Java 8 as having "premier" support until 2022.
Conversely, Java 9 and 10 have had their premier support lapse in March and September of 2018. Oracle's new update model ensures that non-LTS releases from Java 9 onwards are only officially supported until the new version of Java arrives.
"Current" is a bit of a strong word when it comes to Java; technically, the latest version of Java that should be used by end consumers is Java 11 (as of time of writing), since that is the current LTS. However, not all applications which use Java may be up-to-date, so it's safest to fall back to Java 8 until your application vendor informs you that it's safe to upgrade.
Perhaps that's because Java 11 deprecated modules which are present in Java 10 e.g. JAXB or Java FX. Latest Java 8 still has these modules so the software that worked on Java 10 can potentially work with Java 8.

Is there an openjdk-11-jre? [duplicate]

This question already has an answer here:
Where is JRE 11? [duplicate]
(1 answer)
Closed 3 years ago.
For Linux distributions, there is a package openjdk-8-jre for installing just the jre part of the openjdk 8.
Is there something familiar for the latest openjdk 11 for windows?
The latest openjdk versions can be downloaded at http://jdk.java.net/11/ but I cannot find a way to download just the jre part.
Adoptium (previously AdoptOpenJDK) offers JRE downloads for Java 8 and up.
We don't provide a separate JRE download with JDK 11. Instead, you can use jlink to create a custom runtime image with just the set of modules required by your application. Please see https://docs.oracle.com/en/java/javase/11/tools/jlink.html for details.
I've created a web-based tool to make it easier to create a custom JRE from an OpenJDK 11 implementation (such as Oracle HotSpot, Eclipse OpenJ9, or Amazon Corretto) using jlink. The tool will give you the correct jlink command to run depending on your needs, and this will generate the JRE 11 you're looking for.
I've also included a way to make a standard Java SE JRE 11 for those who just want a basic lightweight (~40-60 MB) JRE. If you know how to use a terminal, it'll take you less than 2 minutes to create a general-use JRE. It works for JDK 9 and up.
You can give it a shot here: https://github.com/justinmahar/easyjre

Does Tomcat 8 on Java 8 support applications built for Java 6 and Tomcat 6?

My organization is migrating from a Java 6 / Tomcat 6 environment to a Java 8 / Tomcat 8 environment.
I would like to keep things simple on my development box by setting up as follows:
Java 6 and Java 8 installed on the box.
Java 8 as the default version of Java.
Tomcat 8 as the application server, running on Java 8.
Eclipse with two workspaces, one configured for Java 6 and one for Java 8, both deploying on the Tomcat 8 server. The idea is to use the Java 6 workspace for maintenance work so that I can deploy on the old Java6/Tomcat6 server, and to use the Java 8 workspace for new and migrated work.
I would swear I did exactly this without thinking in my prior development box (that died of hardware failure) and that I experienced no problems at all, but I am not certain.
Is this a reasonable setup?
If it is supposed to work, is it because the application is working in a backward compatible mode?
Input would be greatly welcome. I've been hunting all over the web unsuccessfully. Thanks.
See the tomcat link for compatibility as follows :
http://tomcat.apache.org/whichversion.html
tomcat 8 on java 8 will definitely support applications built for java 6 and tomcat 6. I saw code where they are using a code from jdk 1.2 which runs on jdk 6 and tomcat 7.
Few exceptions would be some deprecated methods if you have used in earlier versions of java which will not be supported as it may be removed from newer version of java.
Also if you use third party libraries, you may need to maintain java version compatibility among them.
Otherwise it should work perfectly fine.

Java Runtime Environment deleted after update?

On my machine, yesterday, I had installed and configured 6 java versions:
JRE 6
JRE 7
JRE 8
JDK 6
JDK 7
JDK 8
I believe an update was installed last night and today, both JRE 6 and 7 are missing (in 7, the lib folder is still there, as jars from it might have been locked by running applications).
JDKs are perfectly fine, same is JRE 8.
After checking on a different machine (windows as well), the same thing happened: JRE 7 missing almost completely.
Did any else experience this? If yes, what is the cause? Is it an Oracle "feature" to remove older JREs?
I should mention that we have application which for various reasons need 6 or 7, and cannot be updated to 8 at this time.
Thanks.
Yes, it's a feature. In the Java 6 times it was not, and it ended up in a library hell with dozens of versions of the JRE installed at the same time - something that, in theory, should not be needed as those versions are supposed to be compatible with each other.
As the documentation says:
The Java auto-update mechanism is designed to keep Java users
up-to-date with the latest security fixes. To achieve this goal
Windows and OS X users that rely on Java’s auto-update mechanism will
have their JRE 7 replaced with JRE 8.
...
As we did when JRE 6 was replaced by JRE 7, we have auto-updated users of the older release to the newer version of Java.
If you need to support older environments, you can set your compiler's compliance level. You will not be able to use newer features of the language, but it should run just fine.
You can also keep multiple JDKs installed and use that to test - the JRE comes bundled with it, so you just have to browse to that folder on the command prompt and compile with javac and/or start your app with java.

Issues running Java applets

Recently I'm studying Java. I had no real troubles while building normal java files to .class and execute them, but, when I started a bit with applets I haven't been able to run anything.
Before I had started Java, as developer I had already a lot of development tools (Eclipse, Visual Studio, CodeBlocks and others). So, basically, I already had JDK but downloaded it again to get updated to 1.8.
Now, I have also JRE 8 and there are no troubles in using javac.exe and java.exe to build and execute, but, after building the .class file of applet, when I load the html page, I got an error which strongly recommends me to upgrade JRE.
Just to translate it:
Current version of Java is obsolete.
Upgrade (recommended choice)
Block
Later
If I do the update, it gets me to this page http://java.com/it/download/index.jsp), but, it's the download link of JRE 1.7. As much as I know, JDK 1.8 is not beta (it's accessible a 1.9 preview) so why shall I use 1.7? Indeed, after downloading and installing, when I try to run the applet, the message above is shown again.
Is actually possible to install JRE 1.8 on Google Chrome?
I resolved it. It wasn't easy since it wasn't a real trouble of java.
I had effectively Java 7 version 55 and Java 8 (but also 7-45 and 6). Java 8 was 64-bit while Java 7 was 32.
Google Chrome (32-bit browser) used so the last version it could use. According to Oracle, it's recommended to remove older versions of java (because of security) so I removed everything but the 8, and then switched to 64-bit browser (Chromium). I left older JDK installed for compatibility development reasons.

Categories

Resources