[Top][All Lists]

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

Re: (jhandles installation can´t find java) Implementation of "uicontrol

From: Martin Helm
Subject: Re: (jhandles installation can´t find java) Implementation of "uicontrol" for latest Octave?
Date: Sat, 21 Aug 2010 01:15:04 +0200
User-agent: KMail/1.13.5 (Linux/; KDE/4.4.4; x86_64; ; )

Am Freitag, 20. August 2010, 23:19:08 schrieb Pen-Yuan Hsing:
> On 2010/08/20 16:50, Martin Helm wrote:
> > Am Freitag, 20. August 2010, 22:39:58 schrieb Pen-Yuan Hsing:
> >> Is there anything else that I could try? Again I am trying this in my
> >> Ubuntu 10.04 virtual machine, with the following:
> >> 
> >> java -version
> >> 
> >> java version "1.6.0_18"
> >> OpenJDK Runtime Environment (IcedTea6 1.8.1) (6b18-1.8.1-0ubuntu1)
> >> OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode)
> >> 
> >> javac -version
> >> 
> >> javac 1.6.0_18
> >> 
> >> Octave 3.2 packagae from Ubuntu repository, installed with default
> >> settings
> > 
> > That should be ok, but obviously something is missing, maybe some
> > additional path setting or environment variable, if you can wait until
> > tomorrow, I will compile it on ubuntu 10.04 and check that in a virtual
> > machine and post here the precise steps how to make it work.
> > 
> > - mh
> Yes please, that would be amazing. THANK YOU very much!

OK I did it with 32 bit ubuntu 10.04 in a virtual machine (had no chance to do 
it with 64 bit so please take care that some paths can be slightly different 
on 64 bit version):

Install the following packages in ubuntu

sudo apt-get install octave3.2 octave3.2-headers
sudo apt-get install openjdk-6-jre openjdk-6-jdk
sudo apt-get libjogl-java
sudo apt-get install mesa-common-dev

cd /usr/lib
sudo cp -s /usr/lib/mesa/

cd /usr/bin
sudo cp -s /usr/share/java/jogl.jar .
sudo cp -s /usr/share/java/gluegen-rt.jar .

Download octave java package 1.2.7 from octave forge

Download jhandles 0.3.5 from octave forge

change into the folder where you downloaded this packages for example 

cd ~/Downloads

Run octave as root to install the packages system wide

sudo octave

Then in octave

setenv("JAVA_HOME", "/usr/lib/jvm/java-6-openjdk")
pkg install -verbose java-1.2.7.tar.gz

(you will get some compiler warnings which can safely be ignored)

check that the functions are available 

help java_new
type java_new
x = java_new ("java.lang.StringBuffer", "Initial string")

should not give error messages

pkg install -verbose jhandles-0.3.5.tar.gz

ignore the warnings

exit octave

add the following lines to your .octaverc file in your home directory (create 
one if there is none)


start octave as normal user

pkg list should show 

        java *|   1.2.7 | /usr/share/octave/packages/3.2/java-1.2.7
    jhandles  |   0.3.5 | /usr/share/octave/packages/3.2/jhandles-0.3.5

test with

pkg load jhandles
shading interp

that it works

Hope that helps and that I did not forget to describe a detail.

- mh

reply via email to

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