Java package: Difference between revisions

8 bytes added ,  5 December 2011
using <pre> blocks for code blocks in lists
(using <pre> blocks for code blociks in lists)
(using <pre> blocks for code blocks in lists)
Line 27: Line 27:
*First, Octave searches for the file '''classpath.txt''' in your home directory, If such a file is found, it is read and defines the initial static ''classpath''. Thus it is possible to build an initial static ''classpath'' on a "per user" basis.
*First, Octave searches for the file '''classpath.txt''' in your home directory, If such a file is found, it is read and defines the initial static ''classpath''. Thus it is possible to build an initial static ''classpath'' on a "per user" basis.
*Next, Octave looks for another file '''classpath.txt''' in the package installation directory. This is where '''javaclasspath.m''' resides, usually something like
*Next, Octave looks for another file '''classpath.txt''' in the package installation directory. This is where '''javaclasspath.m''' resides, usually something like
:...\share\Octave\packages\java-1.2.8.
:<pre>...\share\Octave\packages\java-1.2.8.</pre>
:you can find this directory by executing the command ''pkg list''. If this file exists, its contents is also appended to the static ''classpath''. Note that the archives and class directories defined in this file will affect all users.
:you can find this directory by executing the command ''pkg list''. If this file exists, its contents is also appended to the static ''classpath''. Note that the archives and class directories defined in this file will affect all users.