Permlink Replies: 4 - Pages: 1 - Last Post: 20 Feb 20, 09:12 Last Post By: karlmistelberger Threads: [ Previous | Next ]
karlmistelberger

Posts: 127
Registered: 5-Dec-2013
Upgrading Java
Posted: 3 Jun 18, 17:48
  Click to reply to this thread Reply
The current version jAlbum 15.4 comes bundled with java 9.0.4. Users may want to follow vendor recommendations:

Java Platform, Standard Edition 10.0.1
Java SE 10.0.1 is the latest release of Java SE Platform. This release contains improvements like Local-Variable Type Inference, Parallel Full GC, Application Class-Data Sharing. Oracle strongly recommends that all Java SE users upgrade to this release.

http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html

Details are OS dependent. Linux users may change the command of their program starter to read:
java -jar /usr/lib/jalbum/JAlbum.jar

Multiple versions may be installed in parallel. The active version can be selected as:
erlangen:~ # update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).
 
  Selection    Path                                    Priority   Status
------------------------------------------------------------
* 0            /usr/java/jdk-10.0.1/bin/java            100001000 auto mode
  1            /usr/java/jdk-10.0.1/bin/java            100001000 manual mode
  2            /usr/lib/jalbum/jre64/bin/java           1         manual mode
  3            /usr/lib64/jvm/jre-11-openjdk/bin/java   0         manual mode
 
Press <enter> to keep the current choice[*], or type selection number: 
erlangen:~ # 
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Upgrading Java
Posted: 3 Jun 18, 21:58   in response to: karlmistelberger in response to: karlmistelberger
  Click to reply to this thread Reply
We'll eventually update the bundled Java, but some of those reasons (variable type inference for instance) only apply to us developing jAlbum and some (class data sharing) only apply when running several apps on the same JVM, so neither of that benefits you as users.

It's a bit more work involved when we bundle a JVM as we now also prune it to be minimal for the needs of jAlbum.
JeffTucker

Posts: 8,039
Registered: 31-Jan-2006
Re: Upgrading Java
Posted: 3 Jun 18, 23:11   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
If you're running NetBeans, don't dump JDK 8, whatever else you do. The current released version, NetBeans 8.2, will not run over Java 9 or Java 10, unless you're willing to be a guinea pig and run the latest nightly build of NetBeans. Not for the faint of heart.

NetBeans is lagging because it was passed from Oracle to the Apache Foundation, and they're just getting up to speed. A new release of NetBeans, one that will run over Java 9 or 10, will be available RSN (real soon now). ;)
karlmistelberger

Posts: 127
Registered: 5-Dec-2013
Re: Upgrading Java
Posted: 4 Jun 18, 09:06   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
davidekholm wrote:
We'll eventually update the bundled Java, but some of those reasons (variable type inference for instance) only apply to us developing jAlbum and some (class data sharing) only apply when running several apps on the same JVM, so neither of that benefits you as users.

Change is inevitable and its pace has increased incredibly in the past years. Given tough competition and limited resources vendors focus their efforts on their latest versions. This is best illustrated by forthcoming SLE 15, which was forked from Tumbleweed (considered unstable by many) in autumn:

https://www.suse.com/releasenotes/x86_64/SUSE-SLES/15/#TechInfo.Java

Benefits from using always the latest stable version are outweighing risks from lurking bugs. So common wisdom no longer holds. Tumbleweed is rock solid and serves as a basis for SLE.

Thus Oracle's recommendation makes sense, even if most users don't need the new features. Improved garbage collection is a good thing anyway.
karlmistelberger

Posts: 127
Registered: 5-Dec-2013
JDK Install Guide
Posted: 14 Nov 18, 08:57   in response to: karlmistelberger in response to: karlmistelberger
  Click to reply to this thread Reply
Starting with version 17 jAlbum comes bundled with openjdk:

erlangen:~ # /usr/lib/jalbum/jre64/bin/java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
erlangen:~ # 


For maximum consistency users may want to upgrade their system's installation:

erlangen:~ # /usr/lib64/jvm/jre-11-openjdk/bin/java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment (build 11.0.1+13-suse-2.1-x8664)
OpenJDK 64-Bit Server VM (build 11.0.1+13-suse-2.1-x8664, mixed mode)
erlangen:~ # 


"From Java 11 forward, therefore, Oracle JDK builds and OpenJDK builds will be essentially identical."

More: Oracle JDK Releases for Java 11 and Later

BellSoft has a concise and accurate install guide for Linux, MacOS and Windows:

https://bell-sw.com/pages/liberica_install_guide-13.0.2

Edited by: karlmistelberger on 20-Feb-2020 09:05
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums