2012-04-18 23 views
0

Java Web Startを使用してEclipse RCPアプリケーションを実行しようとしています。アプリケーションがダウンロードされて実行された後、しかし、私はこのエラーが発生した:コンポーネントでJava Webを使用したEclipse RCPアプリケーションの起動が開始されない

JNLP JREDescは無視:その後ヌル

を、アプリケーションが終了します。これの回避策は何ですか?

これが私のメインJNLPファイルです:

<?xml version="1.0" encoding="UTF-8"?> 
<jnlp spec="1.0+" codebase="http://localhost:8080/demoui-webstart/" href="start.jnlp"> 
    <information> 
    <title> Demo UI Application </title> 
    <vendor>Me</vendor> 
    <homepage href="http://www.me.org" /> 
    <description>description</description> 
    <offline-allowed/> 
    </information> 

    <security> 
    <all-permissions/> 
    </security> 

    <resources> 
    <j2se version="1.7+"/> 
    <jar href="plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"/> 
    <extension name="Wrapper feature" href="features/org.test.webstart.demo.wrapperfeature_0.1.0.jnlp"/> 

    <property name="osgi.instance.area" value="@user.home/Application Data/demoui-rcp"/> 
    <property name="osgi.configuration.area" value="@user.home/Application Data/demoui-rcp"/> 

    <property name="eclipse.application" value="org.test.webstart.demo.plugin.application"/> 
    </resources> 

    <application-desc main-class="org.eclipse.equinox.launcher.WebStartMain"> 
    <argument>-nosplash</argument> 
    </application-desc> 
</jnlp> 

org.test.webstart.demo.wrapperfeature_0.1.0.jnlp

<?xml version="1.0" encoding="utf-8"?> 
<jnlp spec="1.0+" codebase="http://localhost:8080/demoui-webstart/"> 
    <information> 
     <title>Wrapperfeature</title> 
     <vendor>Me</vendor> 
     <offline-allowed/> 
    </information> 
    <resources> 
     <j2se version="1.7+" /> 
     <jar href="plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"/> 
     <extension href="features/org.test.webstart.demo.feature_0.1.0.jnlp" /> 
    </resources> 
    <component-desc/> 
</jnlp> 

org.test.webstart.demo.feature_0.1.0。 JNLP

<?xml version="1.0" encoding="UTF-8"?> 
<jnlp spec="1.0+" codebase="http://localhost:8080/demoui-webstart/"> 
    <information> 
     <title>Feature</title> 
     <vendor>Me</vendor> 
     <offline-allowed/> 
    </information> 
    <security> 
     <all-permissions/> 
    </security> 

    <resources> 
     <j2se version="1.7+" /> 
     <jar href="plugins/org.test.webstart.demo.plugin_0.1.0.jar"/> 
     <extension href="features/org.eclipse.rcp_3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272.jnlp" /> 
    </resources> 
    <component-desc/> 
</jnlp> 

org.eclipse.rcp_3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272

<?xml version="1.0" encoding="UTF-8"?> 
<jnlp spec="1.0+" codebase="http://localhost:8080/demoui-webstart/"> 
    <information> 
     <title>Eclipse RCP</title> 
     <vendor>Eclipse.org</vendor> 
     <offline-allowed/> 
    </information> 
    <security> 
     <all-permissions/> 
    </security> 
    <component-desc/> 
    <resources> 
     <j2se version="1.7+" /> 
    </resources> 
    <resources> 
     <jar href="plugins/com.ibm.icu_4.4.2.v20110823.jar"/> 
     <jar href="plugins/org.eclipse.core.commands_3.6.0.I20110111-0800.jar"/> 
     <jar href="plugins/org.eclipse.core.databinding_1.4.0.I20110111-0800.jar"/> 
     <jar href="plugins/org.eclipse.core.databinding.observable_1.4.0.I20110222-0800.jar"/> 
     <jar href="plugins/org.eclipse.core.databinding.property_1.4.0.I20110222-0800.jar"/> 
     <jar href="plugins/org.eclipse.core.databinding.beans_1.2.100.I20100824-0800.jar"/> 
     <jar href="plugins/org.eclipse.core.jobs_3.5.101.v20120113-1953.jar"/> 
     <jar href="plugins/org.eclipse.core.expressions_3.4.300.v20110228.jar"/> 
     <jar href="plugins/org.eclipse.core.runtime_3.7.0.v20110110.jar"/> 
     <jar href="plugins/org.eclipse.core.runtime.compatibility.auth_3.2.200.v20110110.jar"/> 
     <jar href="plugins/org.eclipse.osgi_3.7.2.v20120110-1415.jar"/> 
     <jar href="plugins/org.eclipse.osgi.services_3.3.0.v20110513.jar"/> 
     <jar href="plugins/org.eclipse.help_3.5.100.v20110426.jar"/> 
     <jar href="plugins/org.eclipse.swt_3.7.2.v3740f.jar"/> 
     <jar href="plugins/org.eclipse.jface_3.7.0.v20110928-1505.jar"/> 
     <jar href="plugins/org.eclipse.jface.databinding_1.5.0.I20100907-0800.jar"/> 
     <jar href="plugins/org.eclipse.ui_3.7.0.v20110928-1505.jar"/> 
     <jar href="plugins/org.eclipse.ui.workbench_3.7.1.v20120104-1859.jar"/> 
    </resources> 
    <resources os="Mac"> 
     <jar href="plugins/org.eclipse.ui.carbon_4.0.100.I20101109-0800.jar"/> 
    </resources> 
    <resources os="Mac"> 
     <jar href="plugins/org.eclipse.ui.cocoa_1.1.0.I20101109-0800.jar"/> 
    </resources> 
    <resources> 
     <jar href="plugins/org.eclipse.update.configurator_3.3.100.v20100512.jar"/> 
     <jar href="plugins/org.eclipse.equinox.simpleconfigurator_1.0.200.v20110815-1438.jar"/> 
    </resources> 
    <resources os="Windows" arch="x86"> 
     <jar href="plugins/org.eclipse.swt.win32.win32.x86_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Windows" arch="x86_64"> 
     <jar href="plugins/org.eclipse.swt.win32.win32.x86_64_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Linux" arch="x86"> 
     <jar href="plugins/org.eclipse.swt.gtk.linux.x86_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Linux" arch="s390x"> 
     <jar href="plugins/org.eclipse.swt.gtk.linux.s390x_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Linux" arch="s390"> 
     <jar href="plugins/org.eclipse.swt.gtk.linux.s390_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Solaris" arch="sparc"> 
     <jar href="plugins/org.eclipse.swt.gtk.solaris.sparc_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Solaris" arch="x86"> 
     <jar href="plugins/org.eclipse.swt.gtk.solaris.x86_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Linux" arch="ppc64"> 
     <jar href="plugins/org.eclipse.swt.gtk.linux.ppc64_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Linux" arch="x86_64"> 
     <jar href="plugins/org.eclipse.swt.gtk.linux.x86_64_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Mac" arch="ppc"> 
     <jar href="plugins/org.eclipse.swt.carbon.macosx_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Mac" arch="x86"> 
     <jar href="plugins/org.eclipse.swt.carbon.macosx_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Mac" arch="ppc"> 
     <jar href="plugins/org.eclipse.swt.cocoa.macosx_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Mac" arch="x86"> 
     <jar href="plugins/org.eclipse.swt.cocoa.macosx_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="Mac" arch="x86_64"> 
     <jar href="plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="AIX" arch="ppc"> 
     <jar href="plugins/org.eclipse.swt.gtk.aix.ppc_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="AIX" arch="ppc64"> 
     <jar href="plugins/org.eclipse.swt.gtk.aix.ppc64_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources os="HP-UX" arch="ia64_32"> 
     <jar href="plugins/org.eclipse.swt.gtk.hpux.ia64_32_3.7.2.v3740f.jar"/> 
    </resources> 
    <resources> 
     <jar href="plugins/org.eclipse.rcp_3.7.2.v201202080800.jar"/> 
     <jar href="plugins/org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar"/> 
     <jar href="plugins/org.eclipse.equinox.app_1.3.100.v20110321.jar"/> 
     <jar href="plugins/org.eclipse.equinox.common_3.6.0.v20110523.jar"/> 
     <jar href="plugins/org.eclipse.equinox.ds_1.3.1.R37x_v20110701.jar"/> 
     <jar href="plugins/org.eclipse.equinox.util_1.0.300.v20110502.jar"/> 
     <jar href="plugins/org.eclipse.equinox.preferences_3.4.2.v20120111-2020.jar"/> 
     <jar href="plugins/org.eclipse.equinox.registry_3.5.101.R37x_v20110810-1611.jar"/> 
     <jar href="plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"/> 
    </resources> 
    <resources os="Solaris" arch="sparc"> 
     <jar href="plugins/org.eclipse.equinox.launcher.gtk.solaris.sparc_1.1.100.v20110505.jar"/> 
    </resources> 
    <resources os="Solaris" arch="x86"> 
     <jar href="plugins/org.eclipse.equinox.launcher.gtk.solaris.x86_1.1.100.v20110505.jar"/> 
    </resources> 
    <resources os="Mac" arch="ppc"> 
     <jar href="plugins/org.eclipse.equinox.launcher.carbon.macosx_1.1.100.v20110502.jar"/> 
    </resources> 
    <resources os="Mac" arch="x86"> 
     <jar href="plugins/org.eclipse.equinox.launcher.carbon.macosx_1.1.100.v20110502.jar"/> 
    </resources> 
    <resources os="Mac" arch="ppc"> 
     <jar href="plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.101.v20120109-1504.jar"/> 
    </resources> 
    <resources os="Mac" arch="x86"> 
     <jar href="plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.101.v20120109-1504.jar"/> 
    </resources> 
    <resources os="Mac" arch="x86_64"> 
     <jar href="plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.101.v20120109-1504.jar"/> 
    </resources> 
    <resources os="Linux" arch="ppc64"> 
     <jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.ppc64_1.0.100.v20110505.jar"/> 
    </resources> 
    <resources os="Linux" arch="x86"> 
     <jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505.jar"/> 
    </resources> 
    <resources os="Linux" arch="s390x"> 
     <jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.s390x_1.1.100.v20110505.jar"/> 
    </resources> 
    <resources os="Linux" arch="s390"> 
     <jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.s390_1.1.100.v20110505.jar"/> 
    </resources> 
    <resources os="Linux" arch="x86_64"> 
     <jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505.jar"/> 
    </resources> 
    <resources os="AIX" arch="ppc"> 
     <jar href="plugins/org.eclipse.equinox.launcher.gtk.aix.ppc_1.1.0.v20110530.jar"/> 
    </resources> 
    <resources os="AIX" arch="ppc64"> 
     <jar href="plugins/org.eclipse.equinox.launcher.gtk.aix.ppc64_1.1.0.v20110530.jar"/> 
    </resources> 
    <resources os="Windows" arch="x86"> 
     <jar href="plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502.jar"/> 
    </resources> 
    <resources os="Windows" arch="x86_64"> 
     <jar href="plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502.jar"/> 
    </resources> 
</jnlp> 
+0

使用してJNLPを検証してください[JaNeLA] (http://pscode.org/janela/)。 –

+0

私はJaNeLAを試しましたが、JNLPはエラーなしでした。それでも、アプリケーションは起動できません。 – jackeblagare

+0

* "JREDesc in Component ignored:" * JNLPが使用されているコンポーネント(拡張子)は何ですか?彼らの内容は何ですか? –

答えて

1

1.7はまだ準備ができていません。実装でバグが発見されている可能性があります。成分中


JNLP JREDescは無視:

ヌルこれが原因の宣言である:各拡張で

<j2se version="1.7+" /> 

。拡張機能がロードされるまでに、JREが選択され、実行されています。メイン起動ファイルに指定されたバージョンまでで、アプリケーションに適切なバージョンが確実に適用されます。 (&すべての拡張子)。

拡張機能のユーザーには、必要最小限のバージョンを簡単に指定できるという点で実際には不満です。あなたはそれをコメントにすることができます。この問題について

+0

それは問題ではありません。私は既にj2se 1.6+を試しました。 – jackeblagare

0

いくつかの問題(私は同じだった):

  • は、「コンポーネントでのJNLP JREDescは無視:ヌル」情報だけではなく、問題となっています。複数のjnlpファイルがj2seバージョンを宣言しているときに表示されます。最初のものが取られます。

  • webstartが終了している場合は、おそらく異なるエラーが原因です。以下の方法でエラーを把握するようにしてください:$ HOME/.javaファイル/展開/ deployment.propertiesファイルを開き、deployment.javaws.logToFile =真deployment.javaws.logFileName = LOG_FILEを設定します。 Webstartアプリケーションを再起動し、ログファイルLOG_FILEを表示して、コンソールが表示できなかった実際の問題を表示します(高速に閉じるため)。

  • また、Web起動のメカニズムがうまく機能していても、Eclipse RCPアプリケーションは動作しない可能性があります。この場合、LOG_FILEには問題はありませんが、ディレクトリには "osgi"と指定されています。あなたのjnlpファイルに "instance.area"と入力してください。.metadata/.logファイルまたはその他のログファイルがあります。これらのログファイルには、eclipse rcpの問題があれば解決してください。

  • ところで、Eclipse RCP 4アプリケーションを試してみましたが、WebstartでRCP 4アプリケーションを実行するには、メインJNLPファイル(resourcesタグの下)に次のプロパティを追加して、重要なプラグインは、一貫した方法でロードされています

    <property name="osgi.bundles" 
        value="[email protected]:start, 
          [email protected]:start, 
          [email protected]:start,org. 
          [email protected]:start"> 
    
関連する問題