Fri 11 Jan 2013 06:39:17 AM UTC, original submission:
I have Windows XP sp3 32 bit and Octave 3.6.2 gcc4.6.2.
Java package installation gives misleading information and does not seem to function, as described below.
I downloaded package java-1.2.9.tar.gz, and tried to install it with command:
pkg install java-1.2.9.tar.gz
I got an error message:
Error while trying to install Java package:
environment variable 'JAVA_HOME' has not been set.
The error message suggested to set JAVA_HOME as:
(on Windows:)
<JAVA_HOME>/jre/lib/<arch>/ contains a file jvm.cfg
(<arch> depends on your system hardware, can be i386, x86_64, alpha, arm, ...)
So I tried to set it by command:
setenv("JAVA_HOME", "C:/Program Files/Java/jdk1.6.0_03/jre/lib/i386")
This did not help. Then on the web (http://wiki.octave.org/Java_package) I found different suggestion to set JAVA_HOME. So I tried following:
setenv("JAVA_HOME", "C:/Program Files/Java/jdk1.6.0_03")
After that the installation did not cause any errors. So the installation procedure gives misleading information on how to set JAVA_HOME.
Other thing, after seemingly successful installation java does not seem to work. I tried command:
octave:9> s = javaObject ("java.lang.String", "Hello OctaveString")
and get warning:
the `javaObject' function is not yet implemented in Octave
Same happens with command:
v = javaObject ("java.util.Vector")
So it seems that java package installation did not work at all.
I am very confused.
|