Next: Test the java package installation, Previous: Make sure that the build environment is configured properly, Up: How to compile the java package in Octave?
If you have for example saved the package archive on your z: drive the command would be:
Octave> pkg install -verbose z:/java-1.2.8.tar.gz
or if you have Linux and the package file is stored in your home directory:
octave> pkg install -verbose ~/java-1.2.8.tar.gz
The option -verbose will produce some lengthy output, which should not show any errors (maybe a few warnings at best).
You can then produce a list of all installed packages:
octave> pkg list
This list of packages should now include the package java:
octave> pkg list Package Name | Version | Installation directory --------------+---------+----------------------- java *| 1.2.8 | /home/octavio/octave/java-1.2.8 octave>