Page 1 of 1

[SOLVED] Java Installation

Published: March 2, 2022 - 11:22 AM
by rflandrois
Hello everyone,
Following the migration from WAPT Community to Enterprise 2.1 we are no longer able to deploy Java. Below is the Error Log:

Installing ccmep-java8(=10.0-0)

Installing: ccmep-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:\Program Files (x86)\wapt\waptservice\service.py", line 1965, in run
self.running_task.run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 649, in run
self._run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1192, in _run
raise Exception(_('Error during installation of {}: errors in packages {}').format(
Exception: Error installing ['ccmep-java8(=10.0-0)']: errors in packages [[PackageRequest(package='ccmep-java8',version=(Version('10.0.0.0'), 0),architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'windows'],min_os_version=Version('10.0.19044'),max_os_version=Version('10.0.19044')), PackageEntry('ccmep-java8','10.0-0' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n File "C:\\Program Files (x86)\wapt\common.py", line 5007, in install\n result = self.install_wapt(p.localpath,\n File "C:\\Program Files (x86)\\wapt\\common.py", line 4009, in install_wapt\n raise e\n File "C:\\Program Files (x86)\\wapt\\common.py", line 3922, in install_wapt\n exitstatus = setup.install()\n File "C:\\windows\\TEMP\\waptjrz1lcaa\\setup.py", line 41, in install\n File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1847, in error\n raise EWaptSetupException(\'Fatal error: %s\' % reason)\nwaptutils.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\n']]

Exception: Error installing ['ccmep-java8(=10.0-0)']: errors in packages [[PackageRequest(package='ccmep-java8',version=(Version('10.0.0.0'), 0),architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'windows'],min_os_version=Version('10.0.19044'),max_os_version=Version('10.0.19044')), PackageEntry('ccmep-java8','10.0-0' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n File "C:\\Program Files (x86)\wapt\common.py", line 5007, in install\n result = self.install_wapt(p.localpath,\n File "C:\\Program Files (x86)\\wapt\\common.py", line 4009, in install_wapt\n raise e\n File "C:\\Program Files (x86)\\wapt\\common.py", line 3922, in install_wapt\n exitstatus = setup.install()\n File "C:\\windows\\TEMP\\waptjrz1lcaa\\setup.py", line 41, in install\n File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1847, in error\n raise EWaptSetupException(\'Fatal error: %s\' % reason)\nwaptutils.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\n']]
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1965, in run
self.running_task.run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 649, in run
self._run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1192, in _run
raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Error during installation of ['ccmep-java8(=10.0-0)']: errors in packages [[PackageRequest(package='ccmep-java8',version=(Version('10.0.0.0'), 0),architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'windows'],min_os_version=Version('10.0.19044'),max_os_version=Version('10.0.19044')), PackageEntry('ccmep-java8','10.0-0' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n File "C:\\Program Files (x86)\wapt\common.py", line 5007, in install\n result = self.install_wapt(p.localpath,\n File "C:\\Program Files (x86)\wapt\common.py", line 4009, in install_wapt\n raise e\n File "C:\\Program Files (x86)\\wapt\\common.py", line 3922, in install_wapt\n exitstatus = setup.install()\n File "C:\\windows\\TEMP\\waptjrz1lcaa\\setup.py", line 41, in install\n File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1847, in error\n raise EWaptSetupException(\'Fatal error: %s\' % reason)\nwaptutils.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\n']]


An idea because I'm stuck on the message "please import and deploy the package adapted to your organization"

Re: Java Installation

Published: March 3, 2022 - 4:30 PM
by dcardon
Hello rflandrois,

a year or two ago Oracle changed the licensing for Java 8 in the latest updates (free for testing but not for production). Therefore, to prevent users from installing a version of Oracle Java that requires a license (and incurring the wrath of Oracle's sales team), the Java packages were renamed:

* If you have an Oracle Java license, you can use the package: tis-oracle-java8-jre-nonfree
* If you do not have a license, you must switch to the free Adoptium version: tis-adoptium-openjdk8-jdk

Regards,

Denis

Re: Installing JDK17 to replace Java8

Published: June 2, 2023 - 3:01 PM
by mgrita
Good morning,

I am getting to grips with WAPT and its packages and I had a question about the Java environment with the OpenJDK17 version of Eclipse Adoptium.
Retrieving the package from the wapt store and deploying it to a workstation is successful, but no applications (ganttproject 2.8, freeplane 1.7, geotorture 3.14) are able to launch.
I keep getting the following error.
java error.PNG
java error.PNG (4.34 KiB) Viewed 2515 times
However, I have clearly defined the correct environment, as you can see below.
jdk problem.PNG
jdk problem.PNG (139.92 KB) Viewed 2515 times
After doing some research, I came to understand that it was more of a problem with environment variables in the registry.
I would like more clarification on the subject, I'm afraid I haven't grasped the outlines.

Awaiting a response,

Sincerely

Re: [SOLVED] Java installation

Published: June 5, 2023 - 10:28
by jpele
Good morning
These software programs depend on a Java8 runtime environment and are therefore not compatible with Java17.
I invite you to import one of the packages mentioned by my colleague earlier:
* If you have an Oracle Java license, you can use the package: tis-oracle-java8-jre-nonfree
* If you do not have a license, you must use the open-source version, Adoptium: tis-adoptium-openjdk8-jdk
You can also import those found in the tis-java8 package code (https://store.wapt.fr/store/fr/tis-java8) or even package the Java Runtime Environment 8 (JRE) of your choice yourself.

Sincerely,
Jimmy