help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java package install seems to be ok, but is NOT working.


From: Philip Nienhuis
Subject: Re: Java package install seems to be ok, but is NOT working.
Date: Fri, 11 Jan 2013 06:59:34 -0800 (PST)

Herdon wrote
> I have Windows XP sp3 32 bit and Octave 3.6.2 gcc4.6.2. 
> I downloaded package java-1.2.9.tar.gz and managed to install it after
> playing with JAVA_HOME variable.
> 
> Command pkg list shows that java is installed, and I issued command pkg
> load java, but after that java commands does not seem to be working.
> What happens is like this:
> octave:3> v = javaObject ("java.util.Vector")
> warning: the `javaObject' function is not yet implemented in Octave
> 
> octave:3> javamem
> error: `java_invoke' undefined near line 65 column 8
> error: called from:
> error:   C:\Program
> Files\Octave362\Octave3.6.2_gcc4.6.2\share\octave\packages\java-1.2.9\javamem.m
> at line 65, column 6
> 
> So, what might be the problem?

The problem is that the package hasn't been installed properly.

On Windows the issue is that not only JAVA_HOME must be set, but also the
Java JDK executables (javac.exe (Java compiler), jar.exe (Java archiver))
must be in the PATH. If you would have added the -verbose flag to the pkg.m
command you would have seen something like "Java:  no" somewhere in the
build messages.

So before another retry to install the Java package, add the subdirectory

%JAVA_HOME%\bin

to the PATH and try again.

FYI: this *IS* outlined on the wiki:
http://wiki.octave.org/Java_package#Make_sure_that_the_build_environment_is_configured_properly

Philip




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Java-package-install-seems-to-be-ok-but-is-NOT-working-tp4648763p4648775.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]