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: PhilipNienhuis
Subject: Re: Java package install seems to be ok, but is NOT working.
Date: Wed, 16 Jan 2013 11:31:19 -0800 (PST)

Herdon wrote
> I removed old java installation, and restarted Octave.
> 
> PATH has all the time contained this (only java related item in my PATH):
> C:\Program Files\Java\jdk1.6.0_03\bin;

...which -assuming you run Win7 64-bit- is the 64-bit version of the JDK.


> In command prompt:
> C:\>javac -version
> javac 1.6.0_03
> 
> Then in octave:
> octave:1> setenv ("JAVA_HOME", "C:/Program Files/Java/jdk1.6.0_03/")

...also pointing to the 64-bit version.


> octave:2>  system ('javac -version 2> nul')
> ans = 0
> octave:3> more off
> octave:4> pkg install -forge -verbose java
> 
> mkdir (C:\DOCUME~1\LOCALA~1\LOCALS~1\Temp\oct-2)
> untar (C:\Documents and Settings\localadmin\java-1.2.9.tar.gz,
> C:\DOCUME~1\LOCALA~1\LOCALS~1\Temp\oct-2)

Where is the rest of the messages? I'd expect some 4-5 screens of messages,
not just those 2 lines....


> For information about changes from previous versions of the java package,
> run 'news ("java")'.
> octave:5> s = javaObject ("java.lang.String", "Hello OctaveString")
> warning: the `javaObject' function is not yet implemented in Octave
> 
> Please read `http://www.octave.org/missing.html' to learn how you can
> contribute missing functionality.
> :
> <snip>
> :
> So, in principle, everything seems to be ok, but nothing is working. Any
> more ideas?

I checked on my 64-bit Win7 box at work. I have both the 64-bit and 32-bit
version of the Java JDK installed (both seem to work BTW), and I've probably
used the 32-bit version to build the Java package, the one in (on that box)
C:\Program Files (X86)\Java\jdk1.7.0_07

So my advice is -again, assuming you run Win7 64-bit- to also install a
32-bit JDK and use that in JAVA_HOME and PATH to build the Java package.

Philip




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


reply via email to

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