web-dev-qa-db-fra.com

Erreur lors de l'exécution de l'application Web Java avec OpenJDK Java7 runtime dans Ubuntu 14.04

Je viens d'installer Ubuntu 14.04 sur mon ordinateur portable HP Pavilion g6.

J'ai installé OpenJDK et IcedTea plug-in pour pouvoir exécuter Java applications comme expliqué ici .

Mais quand je vais sur chess.com site Web et que je sélectionne jouer contre l’ordinateur , il affiche un Erreur. "Cliquez ici pour les détails qu'une exception s'est produite"

enter image description here

Ensuite, j'ai exécuté firefox depuis un terminal et ouvert à nouveau l'application Java. La sortie du terminal est comme

bibi@bibi-HP-Pavilion-g6-Notebook-PC:~$ firefox

 (process:32619): GLib-CRITICAL **: g_slice_set_config: assertion
 'sys_page_size == 0' failed

 Java version "1.7.0_55" OpenJDK Runtime
 Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1) OpenJDK 64-Bit
 Server VM (build 24.51-b03, mixed mode) No permission to use the
 keyboard API for http://googleads.g.doubleclick.net
 Java.io.FileNotFoundException:
 http://www.chess.com/play/ChessApplet.1.14.18.jar  at
 Sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
 Sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.Java:57)
    at
 Sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.Java:45)
    at Java.lang.reflect.Constructor.newInstance(Constructor.Java:526)
    at
 Sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.Java:1675)
    at
 Sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.Java:1673)
    at Java.security.AccessController.doPrivileged(Native Method)   at
 Sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.Java:1671)
    at
 Sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.Java:1244)
    at
 net.sourceforge.jnlp.util.HttpUtils.consumeAndCloseConnection(HttpUtils.Java:66)
    at
 net.sourceforge.jnlp.util.HttpUtils.consumeAndCloseConnectionSilently(HttpUtils.Java:52)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.getUrlResponseCodeWithRedirectonResult(ResourceTracker.Java:907)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.findBestUrl(ResourceTracker.Java:955)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.initializeResource(ResourceTracker.Java:788)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.processResource(ResourceTracker.Java:628)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.access$600(ResourceTracker.Java:79)
    at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader$1.run(ResourceTracker.Java:1235)
    at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader$1.run(ResourceTracker.Java:1233)
    at Java.security.AccessController.doPrivileged(Native Method)   at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader.run(ResourceTracker.Java:1233)
    at Java.lang.Thread.run(Thread.Java:744) Caused by:
 Java.io.FileNotFoundException:
 http://www.chess.com/play/ChessApplet.1.14.18.jar  at
 Sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.Java:1624)
    at
 Java.net.HttpURLConnection.getResponseCode(HttpURLConnection.Java:468)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.getUrlResponseCodeWithRedirectonResult(ResourceTracker.Java:903)
    ... 9 more

 Java.io.FileNotFoundException:
 http://www.chess.com/play/ChessApplet.1.14.18.jar  at
 Sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
 Sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.Java:57)
    at
 Sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.Java:45)
    at Java.lang.reflect.Constructor.newInstance(Constructor.Java:526)
    at
 Sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.Java:1675)
    at
 Sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.Java:1673)
    at Java.security.AccessController.doPrivileged(Native Method)   at
 Sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.Java:1671)
    at
 Sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.Java:1244)
    at
 net.sourceforge.jnlp.util.HttpUtils.consumeAndCloseConnection(HttpUtils.Java:66)
    at
 net.sourceforge.jnlp.util.HttpUtils.consumeAndCloseConnectionSilently(HttpUtils.Java:52)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.getUrlResponseCodeWithRedirectonResult(ResourceTracker.Java:907)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.findBestUrl(ResourceTracker.Java:955)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.initializeResource(ResourceTracker.Java:788)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.processResource(ResourceTracker.Java:628)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.access$600(ResourceTracker.Java:79)
    at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader$1.run(ResourceTracker.Java:1235)
    at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader$1.run(ResourceTracker.Java:1233)
    at Java.security.AccessController.doPrivileged(Native Method)   at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader.run(ResourceTracker.Java:1233)
    at Java.lang.Thread.run(Thread.Java:744) Caused by:
 Java.io.FileNotFoundException:
 http://www.chess.com/play/ChessApplet.1.14.18.jar  at
 Sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.Java:1624)
    at
 Java.net.HttpURLConnection.getResponseCode(HttpURLConnection.Java:468)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.getUrlResponseCodeWithRedirectonResult(ResourceTracker.Java:903)
    ... 9 more

 No permission to use the keyboard API for
 http://googleads.g.doubleclick.net Java.io.FileNotFoundException:
 http://www.chess.com/play/ChessApplet.1.14.18.jar  at
 Sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
 Sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.Java:57)
    at
 Sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.Java:45)
    at Java.lang.reflect.Constructor.newInstance(Constructor.Java:526)
    at
 Sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.Java:1675)
    at
 Sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.Java:1673)
    at Java.security.AccessController.doPrivileged(Native Method)   at
 Sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.Java:1671)
    at
 Sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.Java:1244)
    at
 net.sourceforge.jnlp.util.HttpUtils.consumeAndCloseConnection(HttpUtils.Java:66)
    at
 net.sourceforge.jnlp.util.HttpUtils.consumeAndCloseConnectionSilently(HttpUtils.Java:52)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.getUrlResponseCodeWithRedirectonResult(ResourceTracker.Java:907)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.findBestUrl(ResourceTracker.Java:955)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.initializeResource(ResourceTracker.Java:788)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.processResource(ResourceTracker.Java:628)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.access$600(ResourceTracker.Java:79)
    at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader$1.run(ResourceTracker.Java:1235)
    at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader$1.run(ResourceTracker.Java:1233)
    at Java.security.AccessController.doPrivileged(Native Method)   at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader.run(ResourceTracker.Java:1233)
    at Java.lang.Thread.run(Thread.Java:744) Caused by:
 Java.io.FileNotFoundException:
 http://www.chess.com/play/ChessApplet.1.14.18.jar  at
 Sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.Java:1624)
    at
 Java.net.HttpURLConnection.getResponseCode(HttpURLConnection.Java:468)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.getUrlResponseCodeWithRedirectonResult(ResourceTracker.Java:903)
    ... 9 more

 Java.io.FileNotFoundException:
 http://www.chess.com/play/ChessApplet.1.14.18.jar  at
 Sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
 Sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.Java:57)
    at
 Sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.Java:45)
    at Java.lang.reflect.Constructor.newInstance(Constructor.Java:526)
    at
 Sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.Java:1675)
    at
 Sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.Java:1673)
    at Java.security.AccessController.doPrivileged(Native Method)   at
 Sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.Java:1671)
    at
 Sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.Java:1244)
    at
 net.sourceforge.jnlp.util.HttpUtils.consumeAndCloseConnection(HttpUtils.Java:66)
    at
 net.sourceforge.jnlp.util.HttpUtils.consumeAndCloseConnectionSilently(HttpUtils.Java:52)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.getUrlResponseCodeWithRedirectonResult(ResourceTracker.Java:907)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.findBestUrl(ResourceTracker.Java:955)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.initializeResource(ResourceTracker.Java:788)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.processResource(ResourceTracker.Java:628)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.access$600(ResourceTracker.Java:79)
    at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader$1.run(ResourceTracker.Java:1235)
    at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader$1.run(ResourceTracker.Java:1233)
    at Java.security.AccessController.doPrivileged(Native Method)   at
 net.sourceforge.jnlp.cache.ResourceTracker$Downloader.run(ResourceTracker.Java:1233)
    at Java.lang.Thread.run(Thread.Java:744) Caused by:
 Java.io.FileNotFoundException:
 http://www.chess.com/play/ChessApplet.1.14.18.jar  at
 Sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.Java:1624)
    at
 Java.net.HttpURLConnection.getResponseCode(HttpURLConnection.Java:468)
    at
 net.sourceforge.jnlp.cache.ResourceTracker.getUrlResponseCodeWithRedirectonResult(ResourceTracker.Java:903)
    ... 9 more

 Attempted to download
 http://www.chess.com/play/ChessApplet.1.14.18.jar, but failed to
 connect! JAR http://www.chess.com/play/ChessApplet.1.14.18.jar not
 found. Continuing. JAR
 http://www.chess.com/play/ChessApplet.1.14.18.jar not found.
 Continuing. netx: Initialization Error: Could not initialize applet.
 (Fatal: Initialization Error: Unknown Main-Class. Could not determine
 the main class for this application.) netx: Initialization Error:
 Could not initialize applet. (Fatal: Initialization Error: Unknown
 Main-Class. Could not determine the main class for this application.)
 net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error:
 Could not initialize applet. For more information click "more
 information button".   at
 net.sourceforge.jnlp.Launcher.createApplet(Launcher.Java:746)  at
 net.sourceforge.jnlp.Launcher.getApplet(Launcher.Java:675)     at
 net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.Java:908) Caused
 by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error:
 Unknown Main-Class. Could not determine the main class for this
 application.   at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.Java:684)
    at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.<init(JNLPClassLoader.Java:277)
    at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.Java:351)
    at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.Java:418)
    at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.Java:394)
    at net.sourceforge.jnlp.Launcher.createApplet(Launcher.Java:711)    ...
 2 more

 net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error:
 Could not initialize applet. For more information click "more
 information button".   at
 net.sourceforge.jnlp.Launcher.createApplet(Launcher.Java:746)  at
 net.sourceforge.jnlp.Launcher.getApplet(Launcher.Java:675)     at
 net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.Java:908) Caused
 by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error:
 Unknown Main-Class. Could not determine the main class for this
 application.   at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.Java:684)
    at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.<init(JNLPClassLoader.Java:277)
    at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.Java:351)
    at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.Java:418)
    at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.Java:394)
    at net.sourceforge.jnlp.Launcher.createApplet(Launcher.Java:711)    ...
 2 more

 Error on Java side: 

 Error: Unable to fetch applet instance id from Java side.

  Error on Java side: 

  Error: Unable to fetch applet instance id from Java side.

  NOTE: child process received `Goodbye', closing down

  NOTE: child process received `Goodbye', closing down

  bibi@bibi-HP-Pavilion-g6-Notebook-PC:~$

Existe-t-il une solution à ce problème? Toute aide serait appréciée. Je vous remercie.

4
Bibi424

Je l'ai essayé avec OpenJDK, et j'ai eu le même problème.

enter image description here

Essayé avec Oracle Java 8, et cela fonctionne. Essayez Oracle Java au lieu d'OpenJDK.

enter image description here

2
Mitch