使用webstart方式发布,能够正常下载,但是不能运行,提示以下异常,大家有解决的么?
!SESSION Fri Feb 23 09:36:24 CET 2007 ------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 2007-02-23 09:36:24.134
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain.java:58)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

解决方案 »

  1.   

    It tries to find it automatically if it's not set (and in any case, since the Jar will be downloaded via Java WebStart, you don't know where it is). However, I recall that there was a bug with the name of the osgi.jar in 3.2.1; get rid of the R32x_ from the name (i.e. org.eclipse.osgi_3.2.1.R32x_v2345 -> org.eclipse.osgi_3.2.1-v2345). 解决的方法就是把org.eclipse.osgi_3.2.1.R32x_v2345 改名成org.eclipse.osgi_3.2.1-v2345,同时把jnlp中引用的文件名也改过来。这是eclipse的一个bug