You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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

Sometimes you have already a JRE but it is part of another application and you don't want to use it for the JobScheduler.

Further you want to provide that the existing java environment remains unchanged.

In this case you can download the archive of the Oracle JRE from http://www.oracle.com/technetwork/java/javase/downloads/index.html

  • jre-<version>-linux-i586.tar.gz
  • jre-<version>-windows-i586.tar.gz
    Don't use the jre-<version>linux-i586.rpm or jre<version>-windows-i586.exe

You only have to extract the archive in an arbitrary folder and you get a new JRE without any changes in the environment.

Now you can use this new JRE for the JobScheduler.

Windows

We assume that the new JRE is extracted in C:\ProgramData\jre and
you have extracted the JobScheduler download in %TEMP%.
Normally you start the installer with %TEMP%\jobscheduler<version>\setup.cmd
This script looks into the registry to get the current JRE.
But this is not the new JRE for the JobScheduler.

So take this way.
Please open a command line as administrator and type the following:

 > cd %TEMP%\jobscheduler&lt;version&gt;
 > set Path=C:\ProgramData\jre\bin;%Path%
 > java.exe -jar jobscheduler_win32.jar

Now the setup use the new JRE in %APPDATA%\jre and it writes the JRE in some files:

  • ./bin/jobscheduler_environment_variables.cmd
 ...
 if not defined JAVA_HOME set JAVA_HOME=C:\ProgramData\jre
 ...
  • ./bin/jobeditor_environment_variables.cmd
 ...
 if not defined JAVA_HOME set JAVA_HOME=C:\ProgramData\jre
 ...
  • ./bin/dashboard_environment_variables.cmd
 ...
 if not defined JAVA_HOME set JAVA_HOME=C:\ProgramData\jre
 ... 

You see that the new JRE is only used if JAVA_HOME is unset.
Otherwise you have to create:

  • ./user_bin/jobscheduler_environment_variables.cmd
  • ./user_bin/jobeditor_environment_variables.cmd
  • ./user_bin/dashboard_environment_variables.cmd
    In these files you insert
 set JAVA_HOME=C:\ProgramData\jre

There is one thing left to do.
The JobScheduler looks into the registry to find the JVM but you want to use another.
Configure in the ./config/sos.ini the path of the jvm.dll of the new JRE installation and restart the JobScheduler.

 ...
 [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

WORK IN PROGRESS

  • No labels