我之前有一个基于 eclipse 3.3 pugins 的 eclipse rcp 应用程序部署在 Windows 和 mac OS X 10.4 上。我现在正在尝试将应用程序移植到 Mac OS X 10.5.8 (Leopard) 上的 java 1.6 和 eclipse 3.5 (Build id: 20100218-1602) 插件。
我可以在 Windows 上从 eclipse 3.5 启动该产品,但不能在 Mac OS X 上启动。我有 64 位 cocoa eclipse IDE 和 java 6。在启动配置中,我将运行时 JRE 设置为 JVM 1.6.0 并添加了所需的插件。插件验证,其他一切看起来都与 Windows 配置类似,但当我启动时,我只在控制台中看到以下两行:
2010-03-16 13:29:32.742 java[758:10b] [Java CocoaComponent compatibility mode]: Enabled
2010-03-16 13:29:32.744 java[758:10b] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
然后程序似乎无限期地挂起。 .log 文件中没有写入任何内容,因此我不确定存在什么错误。
编辑:这是在所有 cpu Activity 停止之前 Yourkit 分析的内容。
+----------------------------------------------------------------------------+----------------+-----------------+
| Name | Time (ms) | Own Time (ms) |
+----------------------------------------------------------------------------+----------------+-----------------+
| +---<All threads> | 2,799 100 % | |
| | | | |
| +---org.eclipse.equinox.launcher.Main.main(String[]) | 1,924 69% | 0 |
| | | | |
| +---org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run() | 632 23 % | 0 |
| | | | |
| +---java.lang.Thread.run() | 135 5 % | 0 |
| | | | |
| +---java.lang.ClassLoader.loadClassInternal(String) | 106 4 % | 0 |
+----------------------------------------------------------------------------+----------------+-----------------+
,这在异常(exception)选项卡中:
Exception staticstics
+----------------------------------------+--------------+
| Name | Count |
+----------------------------------------+--------------+
| +---java.lang.ClassNotFoundException | 102 11 % |
| | | |
| +---java.net.MalformedURLException | 4 0 % |
| | | |
| +---java.lang.NoSuchMethodException | 3 0 % |
| | | |
| +---java.lang.NumberFormatException | 2 0 % |
| | | |
| +---java.io.FileNotFoundException | 1 0 % |
| | | |
| +---java.lang.UnsatisfiedLinkError | 1 0 % |
+----------------------------------------+--------------+
以下是有关上述 ClassNotFoundExceptions
的更多详细信息:
java.lang.ClassNotFoundException
Start Level Event Dispatcher native ID: 0x8B0B group: 'main' 78
Thread-4 native ID: 0x10B group: 'main' 22
Framework Event Dispatcher native ID: 0xD207 group: 'main' 2
有人知道为什么我在 Eclipse 或任何日志文件中看不到对此的跟踪吗?我有什么想法应该去哪里看吗?
[更新时间:2010 年 3 月 16 日星期二 09:37]
最佳答案
Cocoa 64 位的 SWT 对于 3.5 来说不稳定。
一开始不支持(请参阅此blog entry)
- bug 221483在 Carbon 上提到了它并且
- bug 277485在 Cocoa 上提到过
您可以检查一下最新的 eclipse 3.6M6 是否也出现同样的问题。
关于java - 在 Mac OS 上将 eclipse rcp 应用程序从 3.3 升级到 3.5 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2454991/