Page 1 of 1

[SOLVED] Java8

Published: May 6, 2024 - 1:34 PM
by gaelds
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?

Re: Java8

Published: May 6, 2024 - 1:45 PM
by sfonteneau
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.

Re: Java8

Published: May 7, 2024 - 9:50 AM
by dcardon
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

Re: Java8

Published: May 7, 2024 - 11:03 AM
by gaelds
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?

Re: Java8

Published: May 7, 2024 - 11:07 AM
by gaelds
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.

Re: Java8

Published: May 7, 2024 - 11:10 AM
by sfonteneau
Good catch, I hadn't seen that.

I'll correct the package.

Re: Java8

Published: May 7, 2024 - 11:11
by dcardon
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

Re: Java8

Published: May 7, 2024 - 11:23
by dcardon
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