Java Reference
In-Depth Information
Running the jrecreate Command
The ejdk1.8.0 directory contains three subdirectories:
bin
lib
target (e.g. named linux_i586 for EJDK on Linux/x86)
On Linux, you can use the ls command to list the contents of the ejdk1.8.0 directory:
[/home/ksharan]$ ls ejdk1.8.0
bin lib linux_i586
The bin directory contains the following files:
jrecreate.bat
jrecreate.sh
jrecreate.config.properties
There are two files for the jrecreate command: one with extension .bat and one with extension .sh . Both files
are the jrecreate tool. You need to use the jrecreate.bat file on Windows and the jrecreate.sh file on Linux. I will
use the jrecreate.sh file because I ran all examples on Linux.
The jrecreate.config.properties file is a configuration file for the jrecreate tool. Typically, you do not need
to change anything in this file. You can look at the file's contents; it contains comments that explain the purpose of
properties and how to change them. I will not cover editing this file. I will focus on only the jrecreate tool.
The lib directory contains the implementation files for the jrecreate command.
The target directory is named differently on different platforms. The name represents the platform and the CPU
architecture. For example, the directory is named linux_i586 for Linux/x86; it is named linux_ppc for Linux/Power
Architecture - Headless -e600 CPU variant with a Classic Floating Point Unit.
You are just one step away from using the jrecreate command to create custom JREs. The command depends
on the JAVA_HOME environment variable to work, which must be set to the installed JDK or JRE directory for Java SE 8.
If the JAVA_HOME is not set, running the jrecreate command will print an error message stating that the JAVA_HOME is
not set.
On Linux, assuming the JDK or JRE for Java SE 8 is installed in /home/ksharan/java8 , you can use the following
command to set the JAVA_HOME environment variable:
[/home/ksharan]$ export JAVA_HOME=/home/ksharan/java8
On Windows, assuming that the JDK or JRE for Java SE 8 is installed in C:\java8 , you can set the JAVA_HOME
environment variable as follows:
C:\>SET JAVA_HOME=C:\java8
On Linux, the syntax to run the jrecreate command is
jrecreate.sh <options>
On Windows, the syntax to run the jrecreate command is
jrecreate.bat <options>
 
Search WWH ::




Custom Search