IcedTea-Web & Java 11

Suewirotjanakun, Bundit bundit.suewirotjanakun at cgi.com
Tue Jul 31 18:35:17 UTC 2018


Hello,

First of all I'm sorry if I'm not using the discussion list properly. It's my first time posting message to this mailing list.

I'm trying to use IcedTea-Web 1.7.1 with Java 11, but I got the following error:

java.lang.ClassNotFoundException: sun/misc/JarIndex
      at java.base/java.lang.Class.forName0(Native Method)
      at java.base/java.lang.Class.forName(Class.java:315)
      at net.sourceforge.jnlp.jdk89acesses.JarIndexAccess.<clinit>(JarIndexAccess.java:23)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader$2.run(JNLPClassLoader.java:1340)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader$2.run(JNLPClassLoader.java:1232)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.activateJars(JNLPClassLoader.java:1362)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:785)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:285)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403)
      at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:809)
      at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:529)
      at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:940)

Running jdk9+ ?
java.lang.RuntimeException: java.lang.IllegalAccessException: class net.sourceforge.jnlp.jdk89acesses.JarIndexAccess cannot access class jdk.internal.util.jar.JarIndex (in module java.base) because module java.base does not export jdk.internal.util.jar to unnamed module @5906ebcb
      at net.sourceforge.jnlp.jdk89acesses.JarIndexAccess.getJarIndex(JarIndexAccess.java:47)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader$2.run(JNLPClassLoader.java:1340)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader$2.run(JNLPClassLoader.java:1232)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.activateJars(JNLPClassLoader.java:1362)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:785)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:285)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403)
      at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:809)
      at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:529)
      at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:940)
Caused by: java.lang.IllegalAccessException: class net.sourceforge.jnlp.jdk89acesses.JarIndexAccess cannot access class jdk.internal.util.jar.JarIndex (in module java.base) because module java.base does not export jdk.internal.util.jar to unnamed module @5906ebcb
      at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
      at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
      at java.base/java.lang.reflect.Method.invoke(Method.java:558)
      at net.sourceforge.jnlp.jdk89acesses.JarIndexAccess.getJarIndexImpl(JarIndexAccess.java:53)
      at net.sourceforge.jnlp.jdk89acesses.JarIndexAccess.getJarIndex(JarIndexAccess.java:45)
      ... 12 more

I kind of have good idea of what causes the error, but I just want to make sure that I explore all the options. Is there any configuration I can set to make it worked with Java 11? Do I have to wait for the a version of IcedTea-Web that supports Java 11? If it's the case, is there any timeline on the GA?

Thank you.

Best regards,
Bundit Suewirotjanakun.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20180731/f5a5b68d/attachment-0001.html>


More information about the distro-pkg-dev mailing list