简体   繁体   English

Mac OS X Java SDK支持

[英]Mac OS X Java SDK Support

Can anyone tell me, or send me to a page, that can tell me what version of Java that a Mac OS X supports out of the box? 任何人都可以告诉我,或将我发送到页面上,该页面可以告诉我Mac OS X支持开箱即用的Java版本吗? I know for instance 10.5 comes with Java 1.5 installed by default. 我知道例如10.5默认情况下安装了Java 1.5。 what about 10.4? 10.4呢? 10.3? 10.3? 10.2? 10.2? 10.1? 10.1?

My app needs to be cross platform and I need to figure out what Java version to use to build my Java code. 我的应用程序必须是跨平台的,并且需要弄清楚用于构建Java代码的Java版本。 This would also determine what versions of Mac OS X i can support, and i obviously want to support back as far as i can. 这也将决定我可以支持哪些版本的Mac OS X,而且显然我想尽可能地支持。

I initially compiled using Java 1.6 and tried to run on my test machine - Mac OS X 10.4.11 (and it crashed of course). 我最初使用Java 1.6进行编译,然后尝试在我的测试计算机-Mac OS X 10.4.11上运行(它当然崩溃了)。 So it looks like Java 1.6 is completely out because 10.4 cannot support it at all even fully updated. 如此看来Java 1.6完全淘汰了,因为10.4甚至完全更新都根本不支持它。

See this document , specifically the Java Version Strings section. 请参阅本文档 ,特别是Java Version Strings部分。 I don't think there's a one-to-one relationship between Mac OS X versions and Java versions. 我认为Mac OS X版本和Java版本之间没有一对一的关系。

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

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