B4J Question Error creating installation file with B4JPackager11

nima66

Member
I used B4J to build the software for one of the applications I wrote with B4A.
I want to use B4JPackager11 and it shows an error in the log.

err.jpg


I am using OpenJDK 14 + OpenJFX 14.
Since OpenJDK 14 does not have a javapackager.exe file, I used jdk1.8.0_91 which was previously installed.

What is the problem?
 
Last edited:

nima66

Member
Now I have installed JDK.8.0.431.x64 and Java.SE.Runtime.Environment.8.0.431.x64.
I compiled the software with this
Now in B4JPackager11 it displays the following error!

errr.jpg
 
Upvote 0

nima66

Member
Java 11+ is only compatible with 64 bit archs. You will need to use java 8 with the old packager (or distribute the jar directly) to target 32 bit. In most cases it doesn't worth the effort.
I want to cover Windows 32, 64 bit users.
So to generate exe for Windows 32 bit I have to do it manually and it is not possible in b4j. Right? (Unfortunately I don't know how to generate exe file manually and then create the setup file)
Because when I enter Java 8 address in configuration paths, build time gives message to select Java +11.
 
Upvote 0

nima66

Member
My recommendation:
- 64 bit - distribute the standalone package,
- For the 0.1% of users who use 32 bit - distribute the jar and ask them to install Java 8. They will be able to double click on the jar to run.
Your suggestion was great
This is great
Does the jar file run on 32 and 64 bit?
1. That is, if Java 11 is installed, the jar file will run on 64 bit and if Java 8 is installed, the jar file will run on 32 bit?
2. And that to run the exe file on 64 bit, there is no need to install Java 11?
 
Upvote 0
Top