在Java的JSmooth中捆绑JRE的问题 [英] Problem in Bundling JRE in JSmooth in Java

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

问题描述

朋友,我正在使用JSMOOTH安装程序来创建.exe文件并在其中捆绑了我的默认JRE路径.

Friends, I am using JSMOOTH installer for creating .exe file and Bundled my Default JRE path in it..

如果用户的系统中没有Java虚拟机,则必须使用我的.exe文件中的捆绑JRE.

If the user doesn't have Java Virtual Machine in his system it has to use the Bundled JRE in my .exe file ..

但是我尝试使用所有框架选项将其重定向到下载页面,但是无法使用捆绑的JRE.

But its Redirecting to Download Page i tried with all skeleton option but fails to use the Bundled JRE..

有5个框架1.Win服务2.自动下载包装器3.控制台包装器4.窗口包装器 5.自定义Web下载程序包装器

There are 5 skeleton 1.Win Service 2.Autodownload wrapper 3.Console wrapper 4.Windowed Wrapper 5.Custom web downloader wrapper

我的问题是:

1.从这五个选项中,我必须选择哪个选项,以便如果用户不是JVM,它将使用我捆绑的JRE.

1.From this five option which option i have to select such that if user is not JVM it use my bundled JRE.

我遇到的错误如下:

  1. 如果我使用1.Auto Download包装器作为我的骨架,我将得到和

  1. If i use 1.Auto Download wrapper as my skeleton i am getting and

如果我使用CustomWeb下载程序作为我的骨架,我将得到

If i use CustomWeb downloader as my skeleton i am getting

3.如果我使用开窗式包装纸作为我的骨架控制台,我将得到

3.If i use windowed wrappper as my skeleton Console i am getting

  1. 如果我使用控制台包装作为我的骨架,我将得到

我想要的是,如果用户系统中没有JVM,则必须使用捆绑的JRE而不是要求下载JAVA.

What i want is that if there is no JVM in User system it must use the Bundled JRE instead of asking to download the JAVA..

我引用了这本手册,但我仍然这样做无法达到我的目的地.

I reffered this manual and do it so but still i cant achieve my Destination..

我的JSmooth屏幕是

My JSmooth screens are

我的桌面上的JAR文件位于文件夹Test内,JRE文件夹也位于其中.

I am having my JAR file in my desktop inside the folder Test and also my JRE folder inside it..

我尝试通过将JRE保持在.exe和默认路径附近..但是,它始终引用默认Java路径的Jre ...

I tried by keeping my JRE near .exe and Default path..But all time it refers the default Java path's Jre...

推荐答案

我遇到了同样的问题.根据以太的其他提示,我认为 该问题与win32/win64有关,特别是bundle选项将 仅适用于win32 jre.我接通了win32 jre并获得了进一步的发展,但是 由于某些必要的.dll尚未启动,因此启动仍然失败 已安装.看起来,如果没有 jre设计为不需要安装.

I encountered the same problem. Based on other hints in the aether, I think the problem is related to win32/win64, in particular the bundle option will only work with a win32 jre. I switched in a win32 jre and got further, but the launch still failed because some of the necessary .dlls hadn't been installed. It looks like the bundle option can't be reliable without a jre designed to not require installation.

然后,我发现 https://portableapps.com/apps/utilities/java_portable 然后我成功了.它是Java 1.8.0_181,有点 旧的,但足以满足我的需求.

Then, I found https://portableapps.com/apps/utilities/java_portable and I succeeded with that jre. It's java 1.8.0_181 which is a bit old, but adequate for my needs.

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

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