无法在Intellij IDEA中运行应用程序

时间:2015-12-02 19:53:40

标签: java intellij-idea

我在Intellij IDE的桌面上创建了简单的gradle项目。那里的一切似乎都没问题。我可以通过右键单击其上下文并选择选项Run 'MyClass.main()'来运行我的应用程序。完成我在这个项目上的工作后,我将它推送到我的github并尝试将其导入我的笔记本电脑,这样我就可以在大学里展示它了。导入没有问题,但是当我尝试运行它时,我得到以下异常:

"C:\Program Files\Java\jdk1.8.0_66\bin\java" -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_66\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_66\jre\lib\rt.jar;F:\io_evolutions\io_evolutions\build\classes\main;F:\io_evolutions\io_evolutions\build\resources\main;C:\Users\Bartosz Sądel\.gradle\caches\modules-2\files-2.1\org.uncommons.maths\uncommons-maths\1.2.1\cc1d4ec8abf49e86080670d062575f43009f7d82\uncommons-maths-1.2.1.jar;C:\Users\Bartosz Sądel\.gradle\caches\modules-2\files-2.1\org.uncommons.watchmaker\watchmaker-swing\0.7.1\1f72e93816b5638f892dd0e1a98be7a5b3ffe605\watchmaker-swing-0.7.1.jar;C:\Users\Bartosz Sądel\.gradle\caches\modules-2\files-2.1\jfree\jcommon\1.0.16\376f19a7c317509a57dfc684cdfd4081db7c082c\jcommon-1.0.16.jar;C:\Users\Bartosz Sądel\.gradle\caches\modules-2\files-2.1\jfree\jfreechart\1.0.13\b5fbdc552c4caec3dac4b4dcbc10d119a194946e\jfreechart-1.0.13.jar;C:\Users\Bartosz Sądel\.gradle\caches\modules-2\files-2.1\com.google.collections\google-collections\1.0\9ffe71ac6dcab6bc03ea13f5c2e7b2804e69b357\google-collections-1.0.jar;C:\Users\Bartosz Sądel\.gradle\caches\modules-2\files-2.1\org.uncommons.watchmaker\watchmaker-framework\0.7.1\5e8b088427e972bdf4b5649a2d2dd39ed27197f2\watchmaker-framework-0.7.1.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain pl.agh.edu.evolution.experiment.EMASApplet
    Exception in thread "main" java.lang.NoClassDefFoundError: org/uncommons/watchmaker/swing/AbortControl
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.getDeclaredMethod(Class.java:2128)
    at java.awt.Component.isCoalesceEventsOverriden(Component.java:6220)
    at java.awt.Component.access$500(Component.java:186)
    at java.awt.Component$3.run(Component.java:6174)
    at java.awt.Component$3.run(Component.java:6172)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Component.checkCoalescing(Component.java:6171)
    at java.awt.Component.<init>(Component.java:6140)
    at java.awt.Container.<init>(Container.java:283)
    at java.awt.Panel.<init>(Panel.java:64)
    at java.awt.Panel.<init>(Panel.java:56)
    at java.applet.Applet.<init>(Applet.java:65)
    at javax.swing.JApplet.<init>(JApplet.java:131)
    at pl.agh.edu.evolution.experiment.AbstractExampleApplet.<init>(AbstractExampleApplet.java:26)
    at pl.agh.edu.evolution.experiment.EMASApplet.<init>(EMASApplet.java:35)
    at pl.agh.edu.evolution.experiment.EMASApplet.main(EMASApplet.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    Caused by: java.lang.ClassNotFoundException: org.uncommons.watchmaker.swing.AbortControl
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 23 more

Process finished with exit code 1

我在笔记本电脑上的Intellij中运行的每个其他项目都遇到了同样的错误。这是我第一次尝试在升级系统后尝试在Intellij中运行应用程序执行Windows 10.是否有一些配置可能导致此问题?我不记得我必须设置任何东西在桌面上运行它(Windows 8.1),但我可能已经忘记了。

0 个答案:

没有答案