无法运行模拟器 [英] Can't Run Simulator

查看:110
本文介绍了无法运行模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有一段时间没有编码了,所以我启动了Eclipse,更新了插件和Eclipse,现在当我尝试启动模拟器时,我得到了一个例外:

I haven't been coding for a little while, and so I fired up Eclipse, updated the plugin and Eclipse, and now when I try to launch the simulator I get an exception:

Exception in thread "AWT-EventQueue-0" java.lang.VerifyError: Bad type on operand stack

Exception Details:
Location: javax/swing/JScrollBar.getAccessibleContext()Ljavax/accessibility/AccessibleContext; @16: putfield
Reason:    
    Type 'javax/swing/JScrollBar$AccessibleJScrollBar' (current frame, stack[1]) is not assignable to 'javax/accessibility/AccessibleContext'
Current Frame:
    bci: @16
    flags: { }
    locals: { 'javax/swing/JScrollBar' }
    stack: { 'javax/swing/JScrollBar', 'javax/swing/JScrollBar$AccessibleJScrollBar' }
Bytecode:
    0x0000000: 2ab4 001f c700 0f2a bb00 6259 2ab7 0063
    0x0000010: b500 1f2a b400 1fb0                    
Stackmap Table:
    same_frame(@19)

at com.codename1.impl.javase.JavaSEPort.<init>(JavaSEPort.java:411)
at com.codename1.impl.ImplementationFactory.createImplementation(ImplementationFactory.java:69)
at com.codename1.ui.Display.init(Display.java:475)
at com.codename1.impl.javase.Executor$1.run(Executor.java:112)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

是否需要卸载Eclipse并重新安装?还有其他人有这个问题吗?我尝试了一些以前都可以运行的应用程序,它们都可以完成。

Do I need to uninstall Eclipse and re-install it? Anyone else has this problem? I tried a few apps that all used to work, and they all do this.

推荐答案

更新:我有一个我不完全了解的解决方法。右键单击 Simulator * .launch 文件,然后选择 Run As -> Run Configurations 。在那里选择模拟器条目并选择类路径:

Update: I have a workaround which I don't fully understand. Right click the Simulator*.launch file and select Run As -> Run Configurations. There select the simulator entry and select classpath:

在引导程序条目中,删除JRE系统库,然后按运行。完成后,运行和调试将照常进行。

In the bootstrap entries remove the JRE System Library and press run. Once you do that running and debugging should work as before.

下面是我的答案(目前仍适用)。

Below is my (still applicable at this time) answer.

我能够复制它,并且它也发生在Mac上。这看起来像一个Eclipse错误,我在这里提出了一个问题: https:/ /bugs.eclipse.org/bugs/show_bug.cgi?id=526441 可以就此问题进行投票/评论,以便我们可以更快地解决此问题。

I was able to reproduce this and it happens on a Mac too. This looks like an Eclipse bug and I've filed an issue here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=526441 Feel free to upvote/comment on the issue so we might get a faster resolution on this.

我正在尝试找到一种解决方法,但是我真的不确定现在从哪里开始,因为这在JVM / IDE中非常深入。我在问题中添加了eclipse标签,以希望Eclipse社区中的某个人有更好的主意。

I'm trying to find a workaround but I'm not really sure where to begin right now as this is pretty deep in the JVM/IDE. I added eclipse tags to the question hoping someone from the eclipse community has a better idea.

这篇关于无法运行模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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