在 Mac 应用程序中嵌入 Java (.jar) 文件
我需要在我的主 NSWindow 中运行一个 .jar 文件,我该怎么做?
我一直在查看Apple的 "JavaFrameEmbedding" 示例,并且似乎是能够在没有任何 Java 异常的情况下运行它(以前我有异常),但是我看不到小程序。他们使用 JavaFrameView,它是 JavaFrameEmbedding 框架的一部分,尽管我根本找不到任何关于此的文档。这是使用Lion(我也尝试过Snow Leopard,但没有成功)。
I need to have a .jar file run within my main NSWindow, how can I do this?
I have been looking at Apple's example for "JavaFrameEmbedding", and seem to be able to run it without any Java exceptions (previously I had exceptions), however I cannot see the applet. They use the JavaFrameView which is part of the JavaFrameEmbedding framework, although I can't find any documentation about this at all. This is using Lion (I have also tried on Snow Leopard without success).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下载这只小狗并深入研究它。
如果您想在 java 中创建 NSWindow 并让程序从那里运行,请尝试以下操作:
Download this puppy and dig through it.
If you want to make the
NSWindow
in java and have the program run from there try something like this: