Eclipse在Java 9下显示空白错误信息

4
我已安装Java 9插件。我的项目没有改变,但是当我尝试运行时,出现了这个错误:Empty error dialog 如果您需要更多信息,请随时评论说明您没有足够的信息。
我的.log文件: https://pastebin.com/SQXZVcQk

3
哪个插件?来自哪里?这个项目之前能正常工作吗?您能否使用小型迷你项目重现此问题(例如,只有一个类和一个主函数)?您能否提供Eclipse错误日志文件的内容?如果删除插件,项目是否能够重新工作?目前状态下,仅凭这些信息是不足以帮助您的(除非已经遇到完全相同的问题的用户)。 - Zabuzard
1
它在Java 8中运行。 - not my real name
请查看工作区.metadata目录中的.log文件,以查看是否有更详细的消息。 - greg-449
你有那个插件的URL吗? - nitind
@RayWu - 你如何配置项目的库?要使用哪个JDK,library.path等? - Naman
显示剩余8条评论
2个回答

3

根据我的理解,似乎是配置问题。可能会有两个原因/解决方法:

  1. From the logs:

    Root exception:
    java.lang.ExceptionInInitializerError
        at com.jniwrapper.util.ProcessorInfo.b(SourceFile:95)
    Caused by: com.jniwrapper.LibraryNotFoundException: Cannot find JNIWrapper native library (jniwrap64.dll) in java.library.path:
    

    Eclipse is not able to configure the java.library.path properly, in which case you can try setting the VM argument using the following on the command line:

    -Djava.library.path="${workspace_loc:project}\lib;${env_var:PATH}"
    

    Check out How to add native library to "java.library.path" with Eclipse launch (instead of overriding it) for further details and platform specific solutions.

    && make sure you include the path to jdk-9 early access build that should ideally be a must for the plugin used based out of Java9.

  2. Also, the log reads

    !ENTRY org.eclipse.ui 4 0 2017-08-27 09:22:31.358
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.ArrayIndexOutOfBoundsException: -1
        at es.org.chemi.games.snake.ui.GameField.createGameField(GameField.java:217)
        at es.org.chemi.games.snake.ui.GameField$1.controlResized(GameField.java:99)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:236)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
    

    For the pertaining code, you might want to look into the implementation of createGameField at GameField.java:217. If this wasn't specifically occurring on previous java version for you then solving (1) should get rid of this or else you might want to give the solutions at Eclipse Bug: Unhandled event loop exception No more handles a try.


-2

在Eclipse中遇到相同的错误时,我通过选择此选项来修复它,而不是默认选项(在快照中由红色箭头突出显示)。

Use a project specific JRE is selected


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接