Eclipse使用Java 9显示空错误消息 [英] Eclipse shows empty error message with Java 9

查看:342
本文介绍了Eclipse使用Java 9显示空错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Java 9插件。我的项目没有改变,但是当我尝试运行时,我得到了这个:

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

如果你需要其他任何东西,随意评论你没有足够的信息。

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

我的 .log 文件: https://pastebin.com/SQXZVcQk

推荐答案

看起来像配置问题一样我的理解。有两种可能的原因/解决方案:

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


  1. 来自日志:

  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无法正确配置 java.library.path ,在这种情况下你可以尝试使用命令行中的以下命令设置VM参数:

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

查看如何将本地库添加到java.library 。路径"使用Eclipse启动(而不是覆盖它)以获取更多详细信息和特定于平台的解决方案。

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.

&& 确保包含jdk-9早期访问构建的路径,理想情况下该路径应该是基于Java9的插件所必需的。

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

,日志读取


!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)


对于相关代码,您可能希望查看实现
GameField.java上的createGameField:217 。如果这在以前的java版本中没有特别发生,那么解决(1)应该摆脱这个,否则你可能想要在 Eclipse Bug:未处理的事件循环异常不再处理尝试。

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.

这篇关于Eclipse使用Java 9显示空错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆