eclipse java 报错信息,Eclipse使用Java 9显示空错误消息

I have installed the Java 9 plugin. My project hasn't changed, but when I try to run, I get this:qCtpX.png%5C

If you need anything else, feel free to comment that you don't have enough info.

解决方案

Seems like a configuration issue as per my understanding. There are two possible causes/solution to it:

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}"

&& 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.

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值