简体   繁体   English

在Mac上已更新为JDK7,现在获得了AquaTableUI异常

[英]Updated to JDK7 on the Mac and now getting AquaTableUI exception

Basically I'm getting an exception of the type: 基本上,我得到一个类型的异常:

Exception in thread "main" java.lang.NoClassDefFoundError: apple/laf/AquaTableUI 线程“主”中的异常java.lang.NoClassDefFoundError:apple / laf / AquaTableUI

On the Mac OS X 10.8.2 (latest Mac OS) with JDK7. 在具有JDK7的Mac OS X 10.8.2(最新的Mac OS)上。 No idea what is causing it. 不知道是什么原因造成的。 And yes the application is signed. 是的,该应用程序已签名。

The issue was because one of the libraries was referencing JDK6 specific libraries that were no longer supported on JDK7. 问题是因为其中一个库引用了JDK7不再支持的JDK6特定库。 I had to upgrade the jar from those libraries when they became available. 当这些库可用时,我不得不从它们中升级jar。

I'm afraid you have to use the problem is that you are using Oracle JDK. 恐怕您必须使用的问题是您正在使用Oracle JDK。 It is known to have pure Mac OS X support. 众所周知,它具有纯Mac OS X支持。 Most probably your problem have to be resolved by switching back to Apple JDK 6. 您的问题很可能必须通过切换回Apple JDK 6来解决。

I realize that you can manually add JAR file with AquaUI to your classpath. 我意识到您可以使用AquaUI手动将JAR文件添加到您的类路径中。 But when I tested this approach I found many un-obvious bugs, for sample this one: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7166379 但是,当我测试这种方法时,我发现了许多不明显的错误,例如以下示例: http : //bugs.sun.com/bugdatabase/view_bug.do?bug_id=7166379

Such a bugs could show you gray screen of death. 这样的错误可能会向您显示死亡的灰屏。 They could also be a security holes that will allow trojans to occupy your mac. 它们也可能是一个安全漏洞,它将使木马程序占用您的mac。 You can google "Flashback trojan java mac" for details. 您可以在Google中搜索“ Flashback trojan java mac”以了解详细信息。

On these reasons I hardly recommend to use Apple's JDK. 基于这些原因,我几乎不建议使用Apple的JDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM