Bundle Jre downloaded as maven dependency with Install4J - install4j

I am using maven to build my install4J project. I am downloading jre.tar.gz into my project using a Maven dependency. I want to bundle this Jre with Install4J.
I have created a compiler variable bundleJRE which is the path to the jre.tar.gz file, and I created the installer executable.
While installing on a non-java machine, I get an invalid JRE error. Do I need anything else to be configured? How can I bundle this?

We have the same way to build our installer with maven. If the jre is packed correctly ensure the search sequence for the JRE is set to the installation folder first (or only). You can configure that in the "General Settings -> Java Version" configuration tab. We only added the installation folder and deleted all the other entries. Also ensure the minimum java version matches with your bundled one.

Related

createbundle command line refuses to generate Mac bundle on Windows

https://stackoverflow.com/a/57802270/6944068 says "You can generate macOS JRE bundle on Windows."
However, my attempt failed, see transcript:
C:\develop\projects\id-gui\target\downloads\jre-bundles>..\install4j8.0.8\bin\createbundle C:\develop\projects\id-gui\target\downloads\jre-bundles\zulu11.41.24-sa-jdk11.0.8-macosx_x64
The JRE bundle wizard can only create JRE bundles for the platform you're currently running on.
The java home directory C:\develop\projects\id-gui\target\downloads\jre-bundles\zulu11.41.24-sa-jdk11.0.8-macosx_x64 contains a JRE for a different platform.
What's wrong?
The cross-platform generation only applies to bundles that are generated via the mechanism configured on the "General Settings->JRE bundles" step. The createbundle command line tool creates "pre-created JRE bundles", in the install4j IDE you would do the same with "Project->Create a JRE bundle". Those bundles can only be generated on the platform that they are intended for because they rely on a working local installation.

Bundle Jre with Install4J

I have downloaded JRE (jre-x64-1.8.0_40.zip) using Maven Dependency.
I want to Bundle this Jre to install4J.
When I am trying to bundle this, during building it is showing error as FileNotFoundException and looking for File jre-x64-1.8.0_40.zip.tar.gz.
How can I bundle jre zip?
If not, does install4j provide feature to convert file type?
You can create install4j JRE bundles from installed JREs by invoking Project->Create a JRE Bundle from the main menu or by using the createbundle command line utility.
It is not possible to directly convert a ZIP with a JRE or an archive downloaded from the Oracle web site into a JRE bundle that is usable by install4j. You have to install the JRE first in any case.
This has changed with install4j 8. For details, see section "JRE bundle format" on https://www.ej-technologies.com/resources/install4j/help/doc/concepts/jreBundles.html.

JBoss Developer Studio MAVEN project

If I create a new maven project named "getting-started" of type maven-archetype-webapp with the JBoss Developer Studio, then I get the following warning:
Description Resource Path Location Type
Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment. getting-started Build path JRE System Library Problem
I installed Java SE 7 and set the system variable Java_Home to the jdk directory. Also I set by the installation wizard of JBoss DS the path to the jdk directory.
Check the Java Build Path for the project:
1. In JBoss Developer Studio, right-click the project.
2. Click Properties.
3. On the left, click Java Build Path.
4. On the Libraries tab, select the current JRE System Library and click Remove.
5. Click Add Library to add a different JRE System Library (you should be able to select the Workspace default JRE).

Fixing Install4j warnings related to external references to JRE bundles

I'm working with an Install4j v4.2.8 project file that initially referenced internal JREs in C:\Program Files\install4j\jre. It now references the same JRE bundles outside of the Install4j installation directory. Since the change was made, we've been seeing message like the following each time a JRE bundle is added to an installer:
[WARNING] The version of the bundled JRE is too low. It should be at least 1.6!
Is there any way to let Install4j know that those JRE bundles do indeed include 1.6 JREs?
The version is inferred from the file name. The format is
[os]-[arch]-[version][suffix].tar.gz
For example
windows-amd64-1.6.0_29.tar.gz

Problem in eclipse configuring tomcat

I have trouble when I want to configure eclipse. This error appears, but I dont know where is my problem. I copied apache-tomcat-7.0.5 folder in E:\Java folder, where is java installed.
Tomcat requires a Java SDK in order to compile JSP files. Ensure that the JRE preference settings point to an SDK install location.