0
我有一個eclipse插件,我想從命令行運行而不啓動eclipse。我使用OSGi命令實現了這一點:從命令行運行Eclipse RCP應用程序時出錯
/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/bin/java
-XstartOnFirstThread
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Declipse.ignoreApp=false
-Dosgi.noShutdown=true
-Declipse.pde.launch=true
-Dfile.encoding=MacRoman
"-Xbootclasspath/p:/Users/aneeshmohan/Movies/eclipse Indigo/plugins/org.eclipse.jdt.debug_3.7.1.v20110802_r371/jdi.jar"
-classpath "/Users/aneeshmohan/Movies/eclipse Indigo/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"
org.eclipse.equinox.launcher.Main
-product org.talend.rcp.branding.tos.product
-data /Users/aneeshmohan/Desktop/MyWorkspace/../runtime-NewTalendCofiguration
-configuration file:/Users/aneeshmohan/Desktop/MyWorkspace/.metadata/.plugins/org.eclipse.pde.core/NewTalendCofiguration/
-dev file:/Users/aneeshmohan/Desktop/MyWorkspace/.metadata/.plugins/org.eclipse.pde.core/NewTalendCofiguration/dev.properties
-os macosx
-ws cocoa
-arch x86_64
-nl en_US
-consoleLog
-console
-nosplash
--disableLoginDialog
這工作正常沒有問題。 現在我抄我的Eclipse和工作區到另一臺機器,並取得了路徑必要的修改,但是當我運行它,我得到的osgi
控制檯,但最終得到的錯誤:
!MESSAGE Error loading bundle datas. Recalculating cache.
!STACK 0
java.lang.NullPointerException
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.getExtensionFiles(BaseStorage.java:1163)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.addExtensionContent(BaseStorage.java:1087)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.processFrameworkExtension(BaseStorage.java:1060)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.processExtension(BaseStorage.java:1026)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.readBundleDatas(BaseStorage.java:406)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.getInstalledBundles(BaseStorage.java:354)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.getInstalledBundles(BaseAdaptor.java:179)
at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:236)
at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:162)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:261)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
任何人都可以點我在正確的方向來解決這個錯誤?
Eclipse的發佈是什麼? – 2014-09-22 06:58:32
@ greg-449靛藍 – Aneesh 2014-09-22 07:16:03