简体   繁体   English

Jar bundler -d32 vm参数

[英]Jar bundler -d32 vm arguments

I have created an application which uses 32bit libraries on my 64bit Mac Lion so to run my application I need to pass -d32 vm argument in eclipse and it works fine. 我创建了一个在64位Mac Lion上使用32位库的应用程序,因此要运行我的应用程序,我需要在eclipse中传递-d32 vm参数,它可以正常工作。 I created runnable jar of application and it also works fine when I run jar from terminal with -d32 vm arguments but the problem comes when I creates .app file of my application using jar bundler. 我创建了应用程序的可运行jar,当我使用-d32 vm参数从终端运行jar时,它也能正常工作,但是当我使用jar bundler创建应用程序的.app文件时,问题就来了。 I passed -d32 in vm options textbox of jar bundler but when I run .app the application icon comes up in dock but application window does not show up. 我在jar bundler的vm options文本框中传递了-d32,但是当我运行.app时,应用程序图标出现在了Dock中,但没有显示应用程序窗口。

I think it is vm argument issue but I am not sure about it. 我认为这是vm参数问题,但我不确定。 I was wondering if there is some other way to pass vm arguments in jar bundler. 我想知道是否还有其他方法可以在jar bundler中传递vm参数。

Any suggestions related to this problem are welcome. 任何有关此问题的建议都欢迎。

Thanks in advance 提前致谢

I haven't found a way of doing this through the Jar Bundler app, but their is a solution. 我还没有找到通过Jar Bundler应用程序执行此操作的方法,但是它们是一种解决方案。

Create the .app as usual using Jar Bundler. 像往常一样使用Jar Bundler创建.app Right click and "Get Info" on the newly-created application, check the "Open in 32-bit mode" box. 右键单击并在新创建的应用程序上“获取信息”,选中“以32位模式打开”框。

Setting this flag programatically seems to be tricky but possible. 编程方式设置此标志似乎很棘手,但可行。

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

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