Versions Compared

Key

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

...

The JobScheduler requires an Oracle Java JRE (version >= 1.68).

You can install a JRE for exclusive use by Job Scheduler.
This could be useful if, for example, 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.

...

Start by downloading an Oracle JRE archive from http://www.oracle.com/technetwork/java/javase/downloads/index.html

  • jre-<version>-linux-i586x64.tar.gz
  • jre-<version>-windows-i586x64.tar.gz

Don't use the jre-<version>linux-i586x64.rpm or the jre<version>-windows-i586x64.exe archives.

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.

...

To get around this, open a command line as administrator and type the following:

Code Block
 > cd %TEMP%\jobscheduler&lt;version&gt;jobscheduler<version>
 > set Path=C:\ProgramData\jre\bin;%Path%
 > java rem don't use setup.cmd because it looks in the registry to find a jre
 > javaw.exe -jar jobscheduler_win32windows-x64.<version>.jar

The JobScheduler setup will now use the new JRE in C:\ProgramData\jre and write this JRE in the following files: ./bin/jobscheduler

...

_

...

environment_variables.cmd

...

:

...

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 the following files:

...

Code Block
 ...
 [java]
 ;                         does not necessarily work, use PATH (Windows) or LD_LIBRARY_PATH (Unix) to locate the Java VM
 vm                     =  C:\ProgramData\jre\bin\client\jvm.dll

Linux

Assume that you have extracted the new JRE into /opt/jre and

you have extracted the JobScheduler download to /tmp.

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

This script use the JRE which is located in the JAVA_HOME environment variable otherwise from the path (see `which java`), so 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 /opt/jre and write this JRE in ./bin/jobscheduler_environment_variables.sh:

Code Block
 ...
 test -z $JAVA_HOME && 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 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 further in ./user_bin/jobscheduler_environment_variables.sh
 LD_LIBRARY_PATH=$JAVA_HOME/lib/amd64/server:$LD_LIBRARY_PATH

in them.WORK IN PROGRESS