Cela fait un moment que j'utilise Ubuntu et Java les applications Web Start n'ont jamais "fonctionné" dans la version actuelle ou antérieure, et je les ai donc ignorées jusqu'à présent. Cependant, j'ai maintenant besoin de les faire fonctionner dans Firefox. Quand je suis sur une page comme celle-ci: http://www.Oracle.com/technetwork/Java/demos-nojavascript-137100.html Je veux pouvoir cliquer sur les démos comme suggéré et faites-les courir.
J'utilise Ubuntu 11.10 avec Gnome 3 et/ou Linux Mint 12 (64 bits) avec OpenJDK 6, OpenJDK 7 et Sun Java 6. Mon fichier par défaut est actuellement:/usr/lib/jvm/Java- 6-openjdk/jre/bin/Java
$ whereis javaws
javaws:/usr/bin/javaws
/ etc/alternatives/javaws ->/usr/lib/jvm/Java-6-openjdk/jre/bin/javaws
Voici l'erreur que j'obtiens lorsque j'essaie d'exécuter une application Java Web Start:
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application.
at net.sourceforge.jnlp.Launcher.createApplication(Launcher.Java:776)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.Java:552)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.Java:887)
Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: A fatal error occurred while trying to verify jars.
at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.Java:448)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.Java:176)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.Java:295)
at net.sourceforge.jnlp.Launcher.createApplication(Launcher.Java:767)
... 2 more
Caused by:
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: A fatal error occurred while trying to verify jars.
at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.Java:448)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.Java:176)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.Java:295)
at net.sourceforge.jnlp.Launcher.createApplication(Launcher.Java:767)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.Java:552)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.Java:887)
Voici un autre exemple:
http://docs.Oracle.com/javase/tutorial/uiswing/events/keylistener.html
net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file.
at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.Java:491)
at net.sourceforge.jnlp.Launcher.launch(Launcher.Java:283)
at net.sourceforge.jnlp.runtime.Boot.run(Boot.Java:199)
at net.sourceforge.jnlp.runtime.Boot.run(Boot.Java:51)
at Java.security.AccessController.doPrivileged(Native Method)
at net.sourceforge.jnlp.runtime.Boot.main(Boot.Java:165)
Caused by: Java.io.IOException: port out of range:-2147483648
at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.Java:255)
at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.Java:185)
at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.Java:162)
at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.Java:148)
at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.Java:477)
... 5 more
Caused by:
Java.io.IOException: port out of range:-2147483648
at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.Java:255)
at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.Java:185)
at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.Java:162)
at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.Java:148)
at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.Java:477)
at net.sourceforge.jnlp.Launcher.launch(Launcher.Java:283)
at net.sourceforge.jnlp.runtime.Boot.run(Boot.Java:199)
at net.sourceforge.jnlp.runtime.Boot.run(Boot.Java:51)
at Java.security.AccessController.doPrivileged(Native Method)
at net.sourceforge.jnlp.runtime.Boot.main(Boot.Java:165)
RESOLU: Apparemment, les javaws Sun Java fonctionnent. Dans Firefox:
Édition> Préférences> Applications> "Application Java Web Start"> autre:
/ usr/lib/jvm/Java-6-Sun/jre/bin/javaws