Javafx 2.2和Snow Leopard [英] Javafx 2.2 and Snow Leopard

查看:67
本文介绍了Javafx 2.2和Snow Leopard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Mac机器上部署JavaFX2.2应用程序. OS X 10.7或更高版本适用于Java 7u7. OS X 10.6呢?我们有什么解决方法吗?我认为10.6可以更新到Java 6u35,在我读过2.1及更高版本的地方也可以. 2.2可以在6u26或更高版本上运行(尽管没有支持,但是可以).

有人可以帮我实现这一目标吗?我们可以从某个地方下载独立的JFX2.2运行时并将其放到OSX10.6上吗?还是其他替代选择?有没有一种方法可以复制/打包2.2运行时以及应用程序本身?

请帮助.

解决方案

有没有一种方法可以与应用程序本身一起复制/打包2.2运行时?

是的,请参见自包含的应用程序包装中的文档在OS X 10.7+上受支持,并且包括JavaFX 2.2+和jre7u6 +.

那OS X 10.6呢?

JavaFX主管从 oracle论坛主题引用关于Snow豹支持和JavaFX 2.2:

FWIW,实际上我们从Lion使用的一些API不在Snow Leopard上.另外,Apple仅支持当前版本的OS-1(因此现在为Lion和Mountain Lion),并且在部署时我们需要特殊的挂钩.当时的想法是,支持苹果自己不再支持的Mac OS版本是没有意义的.

一些JavaFX(2.0/2.1)的早期开发人员版本确实在Snow Leopard上运行,但它们只是早期开发版本,尚不能投入生产,此外,我认为这些版本的许可证不允许您使用它们在生产代码中.我认为Oracle不再分发这些早期的2.0/2.1开发版本.

当JavaFX完全开源时,您可以尝试将其反向移植到Snow Leopard,但是到那时它可能不值得.

作为一种黑客,您可以尝试将jre7u7 +中捆绑的JavaFX运行时添加到Apple Java6u35中,看看是否可以运行应用程序-但这可能是一个完全不受支持的配置,可能会中断,并且还可能存在发行许可问题. /p>

I need to deploy a JavaFX2.2 application on Mac machines. OS X 10.7 or later are fine with Java 7u7. What about OS X 10.6? Do we have any workaround? I think 10.6 can update upto Java 6u35 and somewhere I read 2.1 & 2.2 can run with 6u26 or later (However there are no support though which is ok).

Can someone please help me to accomplish this? Can we just download standalone JFX2.2 runtime from somewhere and put it on OSX10.6? Or any other alternative option? Is there a way we can copy/package 2.2 runtime along with the app itself?

Please help.

解决方案

Is there a way we can copy/package 2.2 runtime along with the app itself?

Yes, see the documentation on self-contained application packaging which is supported on OS X 10.7+ and includes JavaFX 2.2+ and jre7u6+.

What about OS X 10.6?

Quote from an oracle forum thread by the JavaFX lead regarding Snow Leopard support and JavaFX 2.2:

FWIW, there are in fact some APIs we use from Lion that aren't on Snow Leopard. Also, Apple only supports the current release of the OS - 1 (so now it would be Lion and Mountain Lion), and for deployment we needed special hooks. The thought was that it didn't make sense to support versions of the Mac OS that Apple themselves didn't support any longer.

Some of the early developer builds of JavaFX (2.0/2.1) did run on Snow Leopard, but they were only early development builds and not production ready, plus, I don't think the license on those builds allow you to use them in production code. I don't think these early 2.0/2.1 development builds are distributed by Oracle anymore.

When JavaFX is fully open sourced, you might be able to undertake an effort to backport it to Snow Leopard, but by then it probably wouldn't be worth it.

As a hack, you could try adding the JavaFX runtime bundled in jre7u7+ to an Apple Java6u35 and see if you can run an app - but this would be a totally unsupported configuration likely to break and may also have distribution licensing issues.

这篇关于Javafx 2.2和Snow Leopard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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