强制Java小程序在32位,而不是64位的JRE中运行 [英] Force java applet to run in 32-bit instead of 64-bit JRE

查看:508
本文介绍了强制Java小程序在32位,而不是64位的JRE中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java小程序,在32位JDK(1.5)而设计的。当一个新的MacOS(10.7)中部署它运行错误 - 由于64位JRE是在默认情况下该系统pferred $ P $(有两个用于选择,32位和64位)。如果preferred为了更改为32位第一,一切都OK了 - 但是这不是一个解决方案,因为在客户机上更改设置不方便。对于一个独立的应用程序中捆绑它可以固定在适当的Info.plist设置,只需指定应用程序的架构。

I have a Java applet, designed under 32-bit JDK (1.5). When deploying it on a new MacOS (10.7) it runs incorrectly - because 64-bit JRE is preferred by default in this system (there are two for choose, 32 and 64 bit). If preferred order is changed to 32-bit first, everything is OK - but that's not a solution, because changing settings on a client machine is inconvenient. For a standalone application bundle it could be fixed with proper settings in info.plist, just specifying app architecture.

那么,有没有一种方法,使一个同样的事情小程序启动时 - 指定i386架构,强制浏览器中运行32位JRE,JVM力在32位,或任何工作

So, is there a way to make a same thing when launching applet - to specify i386 architecture, force browser to run 32-bit JRE, force JVM to work in 32 bit, or anything?

目前我只发现了如何指定JRE版本/家族的小程序,它并不能帮助。我试图用推出一款小程序code,如:

For now I found only how to specify JRE version/family for the applet, it doesn't help. I'm trying to launch an applet using the code like:

<object
classid="clsid:CAFEEFAC-0015-0000-FFFF-ABCDEFFEDCBA"
width="740" height="400"
codetype = "application/x-java-applet;version=1.5"
>
<param name="code" value = "ca/lcsi/Program/App/LogoFrameApplet.class"> 
<param name="archive" value="webplayer.jar">
<param name="project" value="testpath.tsfp"> 
<param name="lang" value="en">
    <embed 
    type="application/x-java-applet;version=1.5" 
    code="ca/lcsi/Program/App/LogoFrameApplet.class"
    archive = "webplayer.jar"
    project = "testpath.tsfp"
    lang = "en"
    width="740" height="400"
    >
</object>

请问AP preciate的建议!

Would appreciate the proposals!

推荐答案

那么,问题是种解决,如果有人有兴趣。

So, the problem is kind of solved, if anyone is interested.

有关的applet这是不可能的。这是可能推出的JVM在32位模式下使用Java Web Start的的。但是,随着电流(Java SE 6中)的实施,JWS比小程序不太方便,因为在配置文件的绝对'codeBase的场,这限制了一个小程序/应用程序的部署。

For an applet it's impossible. It is possible to launch JVM in 32-bit mode with the use of Java Web Start. But with current (Java SE 6) implementation, JWS is less convenient than applets, because of an absolute 'codebase' field in config file, which limits the deployment of an applet/application.

看来,问题在JRE实现 - 我的程序确实有非常有限的系统特定的部分,并没有部分依赖位数的。将继续进行测试,本地化问题的错误报告:)

It seems that problem is in JRE implementation - my program really has very limited system-specific parts, and no part that depend of bitness. Would continue testing, to localise a problem for a bug report :)

这篇关于强制Java小程序在32位,而不是64位的JRE中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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