简体   繁体   English

我可以在OS X中进行Java 6开发吗?

[英]Can I do Java 6 development in OS X?

I know when Leopard came out everybody (well, everybody that was a Java developer and cared enough to do development on a Mac) was pissed that there was no Java 6 SDK support. 我知道Leopard什么时候出来(好吧,每个人都是Java开发人员并且非常关心在Mac上进行开发)很生气,因为没有Java 6 SDK支持。 I know somebody provided some kind of hack way a few months after Leopard was released, but I could have sworn that I read sometime later that Apple and/or Sun finally put out an official version of the Java 6 SDK. 我知道有人在Leopard发布几个月后提供了某种黑客方式,但是我可以发誓我后来读到Apple和/或Sun最终推出了Java 6 SDK的官方版本。

So now a year and a half later I am finally interested in doing some Java dev on the Mac (thank Google App Kit for that). 所以现在一年半之后我终于有兴趣在Mac上做一些Java开发了(感谢Google App Kit)。 But when I go to Apple's Java site... all I see is stuff about Java 5. 但是当我访问Apple的Java站点时......我看到的只是关于Java 5的东西。

So, can I do Java 6 on a Mac? 那么,我可以在Mac上运行Java 6吗?

See also : Installing Java 6 on Mac OS 另请参阅在Mac OS上安装Java 6

Yes, JDK6 is available, and it is quite nice, for example it supports DTrace, which otherwise you only get on Solaris. 是的,JDK6是可用的,它非常好,例如它支持DTrace,否则你只能使用Solaris。

The main drawback is that Apple is very aggressive in deprecating older hardware (and OS versions). 主要缺点是Apple非常积极地弃用旧硬件(和OS版本)。 Java6 will never be released for Mac versions before 10.5, and only works on 64bit Intel. Java6将永远不会在10.5之前的Mac版本中发布,并且仅适用于64位Intel。 That also kills native 32 bit libraries, such as SWT/Carbon, which is what Eclipse uses (they need to move to Cocoa now). 这也杀死了原生的32位库,例如SWT / Carbon,这是Eclipse使用的(他们现在需要转移到Cocoa)。

Update: Snow Leopard apparently has Java6 for 32bit Intel , too (in addition to 64bit). 更新: Snow Leopard 显然也有32位Intel的Java6 (除了64位)。

http://developer.apple.com/java/ (which is only for 64-bit Macs) http://developer.apple.com/java/ (仅适用于64位Mac)

http://landonf.bikemonkey.org/static/soylatte/ (SoyLatte, a separate Java 6 port). http://landonf.bikemonkey.org/static/soylatte/(SoyLatte ,一个单独的Java 6端口)。

Yes, JDK6 is available. 是的,JDK6可用。

However, some versions of Eclipse do not support it. 但是,某些版本的Eclipse不支持它。 There is a new one (based on Cocoa) that should but it is not officially available. 有一个新的(基于Cocoa),但它不是正式可用的。

You can but you have to be very wary of Apple on this one. 你可以但是你必须在这个问题上对Apple非常警惕。 Sun released JDK 6 in December 2006 . Sun于2006年12月发布了JDK 6 Apple released Java 6 for MacOS X a year later . Apple 一年后发布了适用于MacOS X Java 6。

Why the delay? 为何延误? It seems that integrating the new Look and Feel was the answer but we don't have an official reason. 似乎整合新的外观和感觉是答案,但我们没有正式的理由。

Now if Java 6 was important to you at the time this would've been (and was) a big deal. 现在,如果Java 6对你很重要,那么这将是(而且是)一个大问题。

As other answers mention, support for certain hardware and libraries can also be problematic. 正如其他答案所提到的,对某些硬件和库的支持也可能存在问题。

windows and Linux are (imho) still the preferred Java development platforms. Windows和Linux(imho)仍然是首选的Java开发平台。 If it ever becomes critical you can always do Java development on a Mac in a VM however. 如果它变得至关重要,那么你总是可以在VM中的Mac上进行Java开发。

Partly. 部分地。 Apple released its version of Java SDK 6 a few months back. Apple几个月前发布了其Java SDK 6版本。 But there are still some functions which are not available on Apple's SDK 6 which exist in Sun's Java SDK 6. I don't know why this is so. 但仍有一些功能在Apple的SDK 6中没有,这些功能存在于Sun的Java SDK 6中。我不知道为什么会这样。

For eg, after Unisys's patent on GIF format expired, Java included the capability to write image files in GIF format in SDK6. 例如,在Unisys的GIF格式专利到期后,Java包含了在SDK6中以GIF格式编写图像文件的功能。 Yet, you still can't write GIF files on Apple's SDK. 但是,您仍然无法在Apple的SDK上编写GIF文件。

http://developer.apple.com/java/ http://developer.apple.com/java/

Looks like you can. 看起来你可以。

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

相关问题 我应该为Java开发升级JAVA版本Mac OS X吗 - Should i upgrade the JAVA version Mac OS X for android development 如何在Mac OS X 10.7 Lion上设置java开发环境即jdk和eclipse IDE? - How to setup java development environment i.e. jdk and eclipse IDE on Mac OS X 10.7 Lion? 如何在Java上安装Mac OS X中的网络驱动器? - How can I mount network drive in Mac OS X on Java? 如何在Mac OS X中检测Java运行时? - How can I detect the java runtime in Mac OS X? 如何在OS X Lion上安装Java本机开发标头 - How to install Java native development headers on OS X Lion 我需要做些什么来阻止我的Java应用程序在OS X上触发Java 6旧版下载 - What do I need to do to stop my Java app from triggering the Java 6 legacy download on OS X 如何在MAC OS X中使用Java Chromium嵌入式框架创建Java项目? - How can i create Java project using Java Chromium Embedded Framework in MAC OS X? 如何从OS X,Java 7上运行的Java .app包中访问资源文件? - How can I access resource files from within a Java .app bundle running on OS X, Java 7? 如何在Java SWT Unified ToolBar(OS X)中右对齐搜索栏 - How do I right align a search bar in a Java SWT Unified ToolBar (OS X) 如何使用JAVA将项目添加到Mac OS X的Finder上下文菜单中? - How do I add items to the Finder context menu in Mac OS X using JAVA?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM