JSmooth关于捆绑JRE的问题 [英] JSmooth question on bundling a JRE

查看:126
本文介绍了JSmooth关于捆绑JRE的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将JRE与jar文件捆绑在一起,以便我可以在任何Windows计算机上运行我的应用程序,而不管它是否具有Java. jsmooth手册说:

I'm trying to bundle a JRE with my jar file so that I can run my application on any windows computer, regardless of if it has Java or not. The jsmooth manual says:

For the option to work correctly, you have to put a JRE in a directory near the EXE (generally in a subdirectory called "jre" or whatever). Once the exe is generated, it will FIRST try to locate the JRE at the location mentioned. If it can't be found there, then it will fallback in the normal jre look-up mode (search for a jre or a jdk in the Windows registry or in commonly-used environment variables). There is no JVM-version check when using a bundled JRE, as the packager is supposed to bundle a suitable JVM for the application.

这是否意味着应该将jar子文件夹包含在jre子文件夹中,或者将其作为单独的jar,或者放在exe附带的文件夹中?如果应该在exe文件夹中,如何指定jre子文件夹的相对路径?

Does this mean that the jre subfolder should be included in the jar, be its own separate jar, or put in the folder that comes along with the exe? If it is supposed to be in a folder with the exe, how can I specify the relative path to the jre subfolder?

我的目录如下:

设置/

-jre/

-myprogram.exe

-myprogram.exe

我尝试在GUI屏幕上使用..\jre.\jre..\setup\jre,但没有一个起作用.

I tried using ..\jre, .\jre, ..\setup\jre in the GUI screen, but none of them worked.

任何想法或线索都将不胜感激.非常感谢!

Any ideas or leads would be greatly appreciated. Thanks so much!

当我尝试jre(和我认为的..\jre)时,尝试运行它时,我从Windows收到以下错误消息"MyProgram.exe已停止运行."当我查看问题详细信息时,它说的是APPCRASH,故障模块的名称是jvm.dll

when I tried jre (and ..\jre I think), I got the following error message from windows when I tried running it "MyProgram.exe has stopped running." When I look at the problem details, it says APPCRASH and the fault module name is jvm.dll

推荐答案

只需将"jre"文件夹放在exe旁边,并在jsmooth的GUI中写"jre"(不带引号)

just put the "jre" folder next to the exe, and write "jre" (without quotes) in the GUI of jsmooth

这篇关于JSmooth关于捆绑JRE的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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