Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can install a JRE for exclusive use by Job SchedulerJobScheduler.
This could be is useful if, for example, if you have already installed a JRE that is used with another application and you want that JRE to remain unchanged and not be used by JobScheduler.

...

You only have to extract this archive to an arbitrary folder to get a new JRE.
It is not necessary to make any changes to the original Java environment.

Now you can configure this the new JRE to be used by JobScheduler:

...

Assume that you have extracted the new JRE into to C:\ProgramData\jre and
you have extracted the JobScheduler download to %TEMP%.

Normally you start the installer with %TEMP%\jobscheduler<version>\setup.cmd
This script looks up the JRE in the registry to get the JRE, where it finds the JRE that has already been installed and not the one to be used by JobScheduler.

...

The JobScheduler setup will now use the new JRE in C:\ProgramData\jre and write this JRE in location to the ./bin/jobscheduler_environment_variables.cmd: file.

Code Block
 ...
 if not defined JAVA_HOME set JAVA_HOME=C:\ProgramData\jre
 ...

Note that the above will only cause the new JRE to be used if JAVA_HOME has not been set.

Otherwise you have to create use the following files:

  • ./user_bin/jobscheduler_environment_variables.cmd
  • ./user_bin/jobeditor_environment_variables.cmd
  • ./user_bin/dashboard_environment_variables.cmd
    and then insert
Code Block
 set JAVA_HOME=C:\ProgramData\jre

...

Finally, JobScheduler itself looks by default looks up the JRE in the registry to find the JRE. To get make JobScheduler to use the new oneJRE, configure the path to the jvm.dll of the new JRE installation in the ./config/sos.ini file and then restart the JobScheduler.

...

Assume that you have extracted the new JRE into to /opt/jre and you that you have extracted the JobScheduler download to /tmp.

Normally you start the installer with /tmp/jobscheduler<version>/setup.sh.

This script use uses the JRE which that is located in specified with the JAVA_HOME environment variable otherwise Java is used from the path (see `which java`), so therefore set JAVA_HOME=/opt/jre before you start the installer.

Code Block
 > cd /tmp/jobscheduler<version>
 > export JAVA_HOME=/opt/jre
 > ./setup.sh

The JobScheduler setup will now use the new JRE in from /opt/jre and write this the JRE in location to the ./bin/jobscheduler_environment_variables.sh file.:

Code Block
 ...
 test -z $JAVA_HOME && JAVA_HOME=C:\ProgramData\/opt/jre
 ...

Note that the above will only cause the new JRE to be used if JAVA_HOME has not been set.

Otherwise you have to create the following files:

  • ./user_bin/jobscheduler_environment_variables.sh
  • ./user_bin/jobeditor_environment_variables.sh
  • ./user_bin/dashboard_environment_variables.sh
    and then insert
Code Block
 JAVA_HOME=/opt/jre
 #and# and further in ./user_bin/jobscheduler_environment_variables.sh
 LD_LIBRARY_PATH=$JAVA_HOME/lib/amd64/server:$LD_LIBRARY_PATH

...