Skip to content

Update Java JDK from 8u141 to 9.0.1 #531

Merged
merged 1 commit into from
Nov 27, 2017
Merged

Conversation

pmenzel
Copy link
Collaborator

@pmenzel pmenzel commented Nov 15, 2017

Tested on keineahnung.

@pmenzel
Copy link
Collaborator Author

pmenzel commented Nov 15, 2017

As talked with @donald and @wwwutz, Java 8 should be installed in parallel under /pkg.

Java 9 was released in September 2017. It supports HiDPI displays [1].
Most changes are detaled in the *Java Platform, Standard Edition Oracle
JDK 9 Migration Guide* [2].

Switch to the new version scheme.

> ### New Version-String Scheme ###
>
> JDK 9 provides a new simplified version-string format. If your code
> relies on the version-string format to distinguish major, minor,
> security, and patch update releases, then you may need to update it.
>
> The format of the new version-string is:
>
> $MAJOR.$MINOR.$SECURITY.$PATCH
>
> For example, under the old scheme, the Java 9u5 security release would
> have the version string 1.9.0_5-b20.
>
> Under the new scheme, the short version of the same release is 9.0.1,
> and the long version is 9.0.1+20.
>
> This change affects java -version and related system properties, such
> as java.runtime.version, java.vm.version, java.specification.version,
> and java.vm.specification.version.
>
> A simple Java API to parse, validate, and compare version strings has
> been added. See java.lang.Runtime.Version.
>
> See Version String Format in Java Platform, Standard Edition
> Installation Guide, and JEP 223: New Version-String Scheme.

Additionally, JCE Jurisdiction Policy File default is now unlimited,
meaning the installation can be removed from the bee file.

> ### JCE Jurisdiction Policy File Default is Unlimited ###
>
> If your application previously required the Java Cryptography
> Extension (JCE) Unlimited Strength Jurisdiction Policy Files, then you
> no longer need to download or install them. They are included in the
> JDK and are activated by default.
>
> If your country or usage requires a more restrictive policy, the
> limited Java cryptographic policy files are still available.
>
> If you have requirements that are not met by either of the policy
> files provided by default, then you can customize these policy files
> to meet your needs.
>
> See the `crypto.policy` Security property in the
> `<java-home>/conf/security/java.security` file, or Cryptographic
> Strength Configuration in the Java Platform, Standard Edition Security
> Developer's Guide.
>
> You are advised to consult your export/import control counsel or
> attorney to determine the exact requirements.

[1] http://openjdk.java.net/jeps/263
[2] https://docs.oracle.com/javase/9/migrate/
@pmenzel pmenzel force-pushed the update-java-from-8u141-to-9.0.1 branch from 53c2d0b to 0b93a5f Compare November 15, 2017 11:06
@pmenzel
Copy link
Collaborator Author

pmenzel commented Nov 15, 2017

Raritan’s KVM application doesn’t seem to work with Java 9.

$ kvm 10
Error: Could not find or load main class nn.pp.rc.RemoteConsoleApplication

@pmenzel
Copy link
Collaborator Author

pmenzel commented Nov 23, 2017

JDK 8 is now available under /pkg.

$ prun jdk-8 kvm 3
JVMVersionInfo: java.vender=Oracle Corporation java.version=1.8.0_141 major=1 minor=8 subminor=0 build=141

@donald
Copy link
Collaborator

donald commented Nov 24, 2017

several applications emit deprecated warnings:

  • yed 3.16.2.1

    buczek@theinternet:~/java/yed$ java -jar yed.jar
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by com.jidesoft.swing.JideTabbedPane (file:/home/buczek/java/yed-3.16.2.1/yed.jar) to field javax.swing.JTabbedPane.visComp
    WARNING: Please consider reporting this to the maintainers of com.jidesoft.swing.JideTabbedPane
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release

  • ireasoning mibbrowser version 8.0

    buczek@theinternet:~/java/ireasoning/mibbrowser$ ./browser.sh
    Log File:/home/buczek/java/ireasoning/mibbrowser/log/log.txt
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by com.jgoodies.looks.common.RenderingUtils (file:/home/buczek/java/ireasoning/mibbrowser/lib/browseraux.jar) to method sun.swing.SwingUtilities2.drawStringUnderlineCharAt(javax.swing.JComponent,java.awt.Graphics,java.lang.String,int,int,int)
    WARNING: Please consider reporting this to the maintainers of com.jgoodies.looks.common.RenderingUtils
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release

others stop working

  • kvm...

  • GUIRA from the DFN-PKI no longer working

    Exception in thread "AWT-EventQueue-2" java.lang.IllegalAccessError: class de.dfncert.slight.SOAPClient (in unnamed module @0x69f0cbb7) cannot access class com.sun.org.apache.xml.internal.serialize.OutputFormat (in module java.xml) because module java.xml does not export com.sun.org.apache.xml.internal.serialize to unnamed module @0x69f0cbb7
    at de.dfncert.slight.SOAPClient.dumpDocument(SOAPClient.java:289)
    at de.dfncert.slight.SOAPClient.doRequest(SOAPClient.java:153)
    at de.dfncert.soap.DFNCERTRegistration.getCAInfo(DFNCERTRegistration.java:56)
    at de.dfncert.guira.pki.DFNPKISelectedCA.getCAInfoDFNPKI2(DFNPKISelectedCA.java:264)
    at de.dfncert.guira.pki.DFNPKICATreeNode.explore(DFNPKICATreeNode.java:220)
    at de.dfncert.guira.gui.Tree.valueChanged(Tree.java:112)
    at java.desktop/javax.swing.JTree.fireValueChanged(JTree.java:2962)
    at java.desktop/javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3451)
    at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:641)
    at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1111)
    at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:297)
    at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:191)
    at java.desktop/javax.swing.JTree.setSelectionPath(JTree.java:1651)
    at java.desktop/javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2736)
    at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:4015)
    at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3954)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6575)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3343)
    at java.desktop/java.awt.Component.processEvent(Component.java:6343)
    at java.desktop/java.awt.Container.processEvent(Container.java:2259)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4961)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2317)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4793)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4536)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4480)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2303)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2758)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4793)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:766)
    at java.desktop/java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:717)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:711)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:99)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:739)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:737)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:736)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:199)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

  • Existing eclipse IDE no longer working

    !ENTRY org.eclipse.osgi 4 0 2017-11-24 15:12:14.566
    !MESSAGE Application error
    !STACK 1
    java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

This is going to be fun if pushed.

@donald
Copy link
Collaborator

donald commented Nov 27, 2017

Please send alluser mail suggesting "prun java-8" before installing this on distmaster

@donald donald merged commit 215784b into master Nov 27, 2017
@donald donald deleted the update-java-from-8u141-to-9.0.1 branch December 1, 2017 15:30
pmenzel added a commit that referenced this pull request Dec 11, 2017
…to-9.0.1"

This reverts commit 215784b, reversing
changes made to 69eadc3.

It was decided, that this update is too early, and Java 9 should be put
under `/pkg`.
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants