web-dev-qa-db-ja.com

Ubuntu 14.04でOpenJDK Java7ランタイムを使用したJava Webアプリケーションの実行エラー

HP Pavilion g6ラップトップに新しいUbuntu 14.04をインストールしています。

説明したようにJavaアプリケーションを実行するためにOpenJDKおよびIcedTeaプラグインをインストールしました here

しかし、私がchess.comウェブサイトに行き、コンピューターと対戦するオプションオプションを選択すると、エラーが表示されます。 「例外が発生した詳細については、ここをクリックしてください」

enter image description here

次に、ターミナルからfirefoxを実行し、Javaアプリケーションを再度開きました。端末出力は

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:~$

この問題の解決策はありますか?任意の助けをいただければ幸いです。ありがとうございました。

4
Bibi424

OpenJDKで試したところ、同じ問題が発生しました。

enter image description here

Oracle Java 8で試してみましたが、動作します。 OpenJDKの代わりにOracle Javaを試してください。

enter image description here

2
Mitch