659
edits
Carandraug (talk | contribs) (→How to compile the java package in Octave?: rename section since package has actually no need to be compiled) |
Carandraug (talk | contribs) (using <pre> blocks for code blociks in lists) |
||
Line 112: | Line 112: | ||
*Note that JDK is not equal to JRE (Java Runtime Environment). The JDK home directory contains subdirectories with include, library and executable files which are required to compile the java package. These files are not part of the JRE, so you definitely need the JDK. | *Note that JDK is not equal to JRE (Java Runtime Environment). The JDK home directory contains subdirectories with include, library and executable files which are required to compile the java package. These files are not part of the JRE, so you definitely need the JDK. | ||
*Do not use backslashes but ordinary slashes in the path. Set the environment variable '''JAVA_HOME''' according to your local JDK installation. Please adapt the path in the following examples according to the JDK installation on your system. If you are using a Windows system that might be: | *Do not use backslashes but ordinary slashes in the path. Set the environment variable '''JAVA_HOME''' according to your local JDK installation. Please adapt the path in the following examples according to the JDK installation on your system. If you are using a Windows system that might be: | ||
:<pre>octave> setenv ("JAVA_HOME", "C:/Java/jdk1.6.0_21");</pre> | |||
:If you are using a Linux system this would look probably more like: | :If you are using a Linux system this would look probably more like: | ||
: | :<pre>octave> setenv ("JAVA_HOME", "/usr/local/jdk1.6.0_21");</pre> | ||
:Note, that on all systems you must use the forward slash '''/''' as the separator, not the backslash '''\'''. If on a Windows system the environment variable '''JAVA_HOME''' is already defined using the backslash, you can easily change this by issuing the following Octave command before starting the installation: | :Note, that on all systems you must use the forward slash '''/''' as the separator, not the backslash '''\'''. If on a Windows system the environment variable '''JAVA_HOME''' is already defined using the backslash, you can easily change this by issuing the following Octave command before starting the installation: | ||
: | :<pre>octave> setenv ("JAVA_HOME", strrep (getenv ("JAVA_HOME"), '\', '/'))</pre> | ||
===Compile and install the package in Octave=== | ===Compile and install the package in Octave=== |