com.apple.eawt - 究竟应该安装什么 [英] com.apple.eawt - what exactly I should install

查看:725
本文介绍了com.apple.eawt - 究竟应该安装什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Max OS X Mountain Lion,java -version返回1.6.0_37。但我无法使用com.apple.eawt。*类导入来编译项目。

I'm using Max OS X Mountain Lion, java -version returns "1.6.0_37". But I cannot compile project with com.apple.eawt.* classes imported.

我必须安装什么才能在我的系统上安装Apple Java Extensions?

What I have to install to have Apple Java Extensions on my system?

任何帮助将不胜感激!

Any help would be appreciated!

更新

我从编译器收到以下错误:

I receive following error from compiler:

java: package com.apple.eawt does not exist

更新-2

安装XCode版本4.5.2

XCode version 4.5.2 is installed

更新-3

我的问题的原因是在classpath中错过了ui.jar。感谢@Ian Roberts

The reason of my problem was missed ui.jar in classpath. Thanks to @Ian Roberts

推荐答案

没有要下载的JAR或任何额外的安装,这些类是JDK的一部分Mac OS X.在Apple Java 6 JDK中,它们位于JDK包下的 Contents / Classes / ui.jar 中(例如 / System / Library / Java Oracle Java上的/JavaVirtualMachines/1.6.0.jdk /Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk ) 7它们位于JRE主目录下的 lib / rt.jar / Library / Internet Plug-Ins / JavaAppletPlugin.plugin / Contents / Home /Library/Java/JavaVirtualMachines/jdk1.7.0*.jdk/Contents/Home/jre )。

There is no JAR to download or anything extra to install, the classes are part of the JDK on Mac OS X. In Apple Java 6 JDKs they live in Contents/Classes/ui.jar under the JDK bundle (e.g. /System/Library/Java/JavaVirtualMachines/1.6.0.jdk or /Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk), on Oracle Java 7 they are in lib/rt.jar under the JRE home directory (/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home or /Library/Java/JavaVirtualMachines/jdk1.7.0*.jdk/Contents/Home/jre).

这篇关于com.apple.eawt - 究竟应该安装什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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