[SOLVED] Java8

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

May 6, 2024 - 1:34 PM

Good morning,
I wanted to replace my Freemind package with TranquilIT's, but it depends on the Java8 package. And when I try to install Java8 on my test machines, I get this error:

Code: Select all

Installing: dst-java8
WARNING: A Java Runtime Environment 8 (JRE) will be installed with WAPT since this package allow arbitrary install based on available package in a specific order
Traceback (most recent call last):
  File "C:\wapt\common.py", line 4234, in install_wapt
    exitstatus = setup.install()
  File "C:\Windows\TEMP\waptj7f36gpx\setup.py", line 35, in install
  File "C:\wapt\waptutils.py", line 1956, in error
    raise EWaptSetupException('Fatal error : %s' % reason)
waptutils.EWaptSetupException: Fatal error : ERROR: No Java Runtime Environment 8 (JRE) have been deployed on this system, please import and deploy the package adapted to your organization

EWaptSetupException: Fatal error : ERROR: No Java Runtime Environment 8 (JRE) have been deployed on this system, please import and deploy the package adapted to your organization
Currently, "Java 8 Update 251" (Oracle) is installed everywhere. I don't have an Oracle license. Should I modify the Freemind package dependency to match my Java 8 version, or is there a better way?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 6, 2024 - 1:45 PM

According to the code:

You must have one of these packages available in the repository:
"tis-adoptium-openjdk8-jre",
"tis-oracle-java8-jre-free",
"tis-oracle-java8-jre-nonfree".

Ultimately, you choose which Java version you want: the free one, the non-free one, or tis-adoptium-openjdk8-jre.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 7, 2024 - 09:50

Hello again Gaël,

FYI
  • tis-oracle-java8-jre-free is the last version of Java Oracle that did not require a license (so it no longer changes).
  • tis-oracle-java8-jre-nonfree is the latest version offered by Oracle, but it requires a paid license.
  • tis-adoptium-openjdk8-jre is the OpenJDK version which does not contain Javawebstart and the applet plugin, but otherwise is quite similar.
Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

May 7, 2024 - 11:03

Hello,
I'm sorry, but I don't understand what the "tis-java8" package is for. Isn't it supposed to install one of the Java versions?
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

May 7, 2024 - 11:07

Looking at the package code, I understand that I need to replace the "tis" prefix with mine in the list of Java packages to install. But then I have to avoid updating it, or remember to do it again each time.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 7, 2024 - 11:10

Good catch, I hadn't seen that.

I'll correct the package.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 7, 2024 - 11:11

Hi Gaël,

oops, indeed there's a package change that hasn't been rolled out to everyone yet. Simon is fixing it and will get back to you shortly.

Thanks for bringing the issue :-)

Best regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 7, 2024 - 11:23

Hi Gaël,

oops, indeed there's a package change that hasn't been implemented across the board. Simon is fixing it and will get back to you shortly.

We don't yet have conditional dependencies in the WAPT control file. We need to implement something like: `

Depends: (tis-oracle-java8-jre-free | tis-oracle-java8-jre-nonfree | tis-adoptium-openjdk8-jre)`.

Currently, the Java 8 package is handling this, but not correctly...

Thanks for bringing this to :-)

Best regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked