B4J Question B4JPackager for Java 8

ThRuST

Well-Known Member
Licensed User
Longtime User
B4JPackager.jpg


Hi, I have tried to create an installer package with B4Jpackager with JDK v1.8.0_202 (PC example)
I have installed Inno setup from the homepage http://www.jrsoftware.org/isdl.php

The latest version is currently v5.6.1. Then I run the B4Jpackager for Java 8 which can be found here
https://www.b4x.com/android/forum/threads/ui-apps-packaging-self-contained-installers.56854/#content

Java v1.8.0 202 can be found here
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html


I have JDK v1.8.0_202 installed and filled the fields, selected an icon and clicked Build.
B4Jpackager folder is created in the roaming directory. It creates a subfolder called \META-INF which contains the buildt package by B4Jbuilder. Then what to do?

However Inno setup is not running at build time, is it supposed to start automatically if the PATH variable is correct? Should it be added in the system variables only and does it only have to refer to Inno's directory or executable? How would you add the buildt package in Inno setup manually without the path variable being correctly set possibly also for Java?

Please share your experiences with this thanks
 
Last edited:

ThRuST

Well-Known Member
Licensed User
Longtime User
After that the Build process is completed, I created an installer manually in Inno Setup.

It looks like this. However an icon was not created on the desktop, and the installed files remains in roaming folder after I uninstalled the app.
I must have missed something in the wizard.

Inno.jpg
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Thank you Sir, I'll check it out right away :)

EDIT: Let me know if you notice any fault in my setup script since the icon was not added on the desktop. Which is what we want, of course!!
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
@Mashiane I have successfully created an installer with Inno setup based on your video tutorial. I created an exe with an associated icon just as you showed with Launch4J.
However I want to ask you about the RNE folder that you added in the installation. Did you download the RNE for Java 8 and extracted it, then added it?
I added the installed Java 1.8.0_202 folder, but I'm not sure if that is correct. Anyway, thanks for a great tutorial it helped along way.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
The dependency JRE version can be specified in Launch4J, so I wonder what did you add according to the RNE you added to the bundle? Was it really neccessary to add to the installer since it was added in Launch4J? Because RNE gets installed in the application folder.


SS-2013-12-19_15.34.24.png
 
Upvote 0
Top