如何使用Cocoa UI制作Java应用程序? [英] How do you make a Java app with a Cocoa UI?

查看:49
本文介绍了如何使用Cocoa UI制作Java应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须为项目使用Java API,但是由于我不喜欢Java UI,并且拥有Mac,因此我想围绕Java代码构建本机Cocoa应用程序.我知道Xcode曾经为这种事情提供直接支持,但是既然不再提供,那么最好的方法是什么?如果有关系的话,我在Mac OS 10.6.8下拥有Xcode 3.2.5.

I have to use a Java API for a project, but since I'm not a fan of Java UIs and I have a Mac, I want to build a native Cocoa application around the Java code. I know Xcode used to provide direct support for this sort of thing, but since it no longer does, what's the best way to do this? If it matters, I have Xcode 3.2.5 under Mac OS 10.6.8.

推荐答案

根据此Apple 技术说明,应该可以从本地Mac应用程序中启动JVM.本文最初写于2006年,此后随着Apple对Java的支持发生了许多变化.但是,它看起来好像是在今年更新的文章,因此,当前版本的OS是否仍支持该文章?我不能保证,但似乎确实值得一试.

According to this Apple tech note it should be possible to launch a JVM from within your native Mac application. This article was originally written in 2006 and a lot has changed since then with Apple's support for Java. However, it does look like the article was updated this year so perhaps it is still supported in current versions of the OS? I can't vouch for it but it does seem like its worth a try.

这篇关于如何使用Cocoa UI制作Java应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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