Problem in JRE combining in JSmooth in Java

Friends, I use the JSMOOTH installer to create the .exe file and bound my default JRE path in it.

If the user does not have a Java virtual machine in his system, he should use the BREED JRE in my .exe file.

But I redirected it to the download page with all the skeleton parameters, but could not use the combined JRE ..

There are 5 skeletons 1.Win Service 2.Autodownload wrapper 3.Console wrapper 4.Windowed Wrapper 5.Computer web loader.

My question is:

1. From this fifth option, I have to choose so that if the user is not a JVM, he uses my associated JRE.

The error I am getting is as follows:

  • If I use 1.Auto Download wrapper as my skeleton, I get this and enter image description here

  • If I use the CustomWeb bootloader as my skeleton, I get this

3.If I use a window wrappper as my skeletal console, I get this

  1. If I use the console shell as my skeleton, I get this

I want that if there is no JVM in the user's system, he should use a unified JRE instead of asking to load JAVA ..

I have added this guide and will do so, but still I cannot reach my destination.

My JSmooth Screens Jvmscreen

Executablescreen

Application screen

I have a JAR file on my desktop inside the Test folder, as well as my JRE folder inside it.

I tried to save the JRE around .exe and the default path .. But all the time it refers to the Java default path Jre ...

+2
java installer jvm
Mar 23 2018-11-11T00:
source share
1 answer

I am not familiar with the creator of the JSmooth Java launcher. But, based on the Launch4J Java launcher creator, you must include your target JRE folder (all folders and subfolders of the target JRE intact) as part of the application launch package. Launch4J should be launched from the base folder, where it can find the JRE folder. For example, if you have a project start path, for example, β€œC: \ MYProject \ install”, where you compile all the classpath dependency files to run your Launcher exe file using β€œC: \ MyProject \ install \ jre1.6.0_26", is aim jre inside it. The JVM package entry must be "jre1.6.0_26". Launch4J EXE startup file should find the relative folder "jre1.6.0_26" from the database "C: \ MYProject \ install"

If you translate this to what your EXE startup file will do when it tries to run:

C:\C:\MYProject\install |__MyApp.EXE (your resulting output launcher file) |__all classpath dependency jars needed by MyApp.EXE |__jre1.6.0_26 (folder of JVM bundle) 

Ant task for Launch4J script:

 <exec executable="C:\Program Files\Launch4j\launch4jc.exe"> <arg value="${basedir}\myLaunch4j.xml"/> </exec> 
0
Nov 12 '11 at 5:18
source share



All Articles