"Java missing" error messages

This forum deals with administrative topics such as monitoring and system setup. It is dedicated to system administrators who do not have to deal with the functions themselves but who have to establish and maintain proper environments.
Public since 15.2.2017

"Java missing" error messages

Postby Bernd Welter » Wed Feb 13, 2019 9:00 am

Hi there,

in the near future PTV xServers will be shipped without the known built-in JAVA runtime (xServer 1.28 and later, xServer 2.12 and later). This is because ORACLE defined a licensing model which is no longer free of cost.

If JAVA isn't configured in a proper way you may face one of the following error messages:

  • Java not configured at all:
    Java not found
    To check if Java is installed and configured, first try to start the server.
    If Java cannot be found, the file wrapper.log contains a message similar to the following:
    ERROR | wrapper | 2019/01/25 14:30:35 | Unable to execute Java command. The system cannot find the file specified. (0x2)
    Please check that you have Java 8 installed. Furthermore the environment variable JAVA_HOME has to point to the location of the Java installation (the directory containing the bin directory). If you do not want to change the value of the JAVA_HOME variable, you can use the environment variable XSERVER_JAVA_HOME.
    You should note that if neither the environment variable JAVA_HOME nor the environment variable XSERVER_JAVA_HOME is defined, the wrapper.log contains an additional warning similar to the following:
    WARN | wrapper | 2019/01/25 14:30:35 | The 'JAVA_HOME' environment variable was referenced but has not been defined.
  • JAVA configured but version mismatch
    Unsupported Java version
    To check if the version of the configured Java installation is supported, first try to start the server.
    If the Java version is unsupported, the file wrapper.log contains a message similar to the following:
    FATAL | wrapper | 2019/01/25 15:37:36 | The version of Java specified by wrapper.java.command (9)
    FATAL | wrapper | 2019/01/25 15:37:36 | is greater than the maximum allowed (1.8).

    Please check that you have Java 8 installed. Furthermore the environment variable JAVA_HOME has to point to the location of the Java installation. If you do not want to change the value of the JAVA_HOME variable, you can use the environment variable XSERVER_JAVA_HOME.

Long story short for the moment:
- you will be able to install an individual JRE on a machine (whether it is the profit version by ORACLE or a free of cost version by some other providers)
- by setting system variables such as JAVA_HOME or XSERVER_JAVA_HOME in the xServer settings you will be able to link the xServer to the JRE you installed "outside" the server installation itself.
- so if you face such a message check your servers documentation (this post is optimistic: the messages are based on internal snapshots ;-) )

Best regards,
Bernd
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1253
Joined: Mon Apr 14, 2014 10:28 am

Return to PTV xServer Administration