2011-11-03 69 views
2

我想安裝eclim,但是出現錯誤。有沒有人知道最新怎麼了?Eclim安裝出錯

$ java -jar eclim_1.7.2.jar 
Buildfile: installer.xml 
2011-11-03 22:04:43,635 INFO [org.formic.Installer] Running Installer. 
2011-11-03 22:04:43,750 ERROR [ANT] 
jar:file:/home/slawosz/Downloads/eclim/eclim_1.7.2.jar!/installer.xml:36: java.lang.ExceptionInInitializerError 
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116) 
    at org.apache.tools.ant.Task.perform(Task.java:348) 
    at org.apache.tools.ant.Target.execute(Target.java:390) 
    at org.apache.tools.ant.Target.performTasks(Target.java:411) 
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) 
    at org.apache.tools.ant.Project.executeTarget(Project.java:1366) 
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
    at org.apache.tools.ant.Project.executeTargets(Project.java:1249) 
    at org.formic.ant.Main.runBuild(Main.java:232) 
    at org.formic.ant.Main.startAnt(Main.java:81) 
    at org.formic.ant.Main.main(Main.java:63) 
    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:616) 
    at com.simontuffs.onejar.Boot.run(Boot.java:306) 
    at com.simontuffs.onejar.Boot.main(Boot.java:159) 
Caused by: java.lang.ExceptionInInitializerError 
    at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:135) 
    at org.formic.Installer.setLookAndFeel(Installer.java:293) 
    at org.formic.Installer.run(Installer.java:109) 
    at org.formic.ant.InstallerTask.execute(InstallerTask.java:89) 
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) 
    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:616) 
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 
    ... 16 more 
Caused by: java.awt.HeadlessException 
    at sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:221) 
    at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:480) 
    at com.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:249) 
    ... 26 more 
2011-11-03 22:04:43,767 DEBUG [ANT] 
BUILD SUCCESSFUL 
Total time: 0 seconds 
java.lang.ExceptionInInitializerError 
2011-11-03 22:04:43,780 WARN [ANT]  [echo] Installation canceled. 
+0

HeadlessException意味着沒有圖形環境,我認爲這是Eclipse的一個要求。你在什麼環境中運行上述? –

+0

您是否匹配安裝的SHA1或MD5總和以確保安裝沒有損壞。 @Necreaux感謝您的建議 – harpribot

回答

-2

經過另一次嘗試,它在我的機器上沒有任何問題。

PS。我將vim切換到emacs ....

0

eclipse可能與JVM有一些兼容性問題。確保eclipse和JVM具有相同的位(32或64位)

+0

Eclipse是一個Java應用程序... AFAIK沒有32位和64位Java應用程序。 – m0skit0

+0

的確,eclipse是一個Java應用程序,但它使用的UI工具包有很多本地庫,所以它們分發32位和64位版本。 –

2

你可能想從-Djava.awt.headless = true開始,看看是否解決了這個問題......我曾經遇到過如果我想運行某些圖形包(當天返回),則是舊的JVM。

+0

不走:'java.lang.ExceptionInInitializerError \t在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116) \t在org.apache.tools.ant.Task.perform(任務。 java:348) \t at org.apache.tools.ant.Target.execute(Target.java:390) ...' – m0skit0