[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/2.6.31.12-0.2-desktop; 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/libGL.so.1 libGL.so
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
http://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases/java-1.2.7.tar.gz/download
Download jhandles 0.3.5 from octave forge
http://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/R2009-05-08/jhandles-0.3.5.tar.gz/download
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")
x.toString()
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)
javaaddpath("/usr/share/java/gluegen-rt.jar")
javaaddpath("/usr/share/java/jogl.jar")
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
sombrero
shading interp
that it works
Hope that helps and that I did not forget to describe a detail.
- mh
- Re: (can't install pkgs due to wrong architecture?) Implementation of "uicontrol" for latest Octave?, (continued)
- Re: (newer Java package needed?) Implementation of "uicontrol" for latest Octave?, Pen-Yuan Hsing, 2010/08/20
- Re: (newer Java package needed?) Implementation of "uicontrol" for latest Octave?, Michael Goffioul, 2010/08/20
- Re: (newer Java package needed?) Implementation of "uicontrol" for latest Octave?, Martin Helm, 2010/08/20
- Re: (newer Java package needed?) Implementation of "uicontrol" for latest Octave?, Pen-Yuan Hsing, 2010/08/20
- Re: (newer Java package needed?) Implementation of "uicontrol" for latest Octave?, Martin Helm, 2010/08/20
- RE: (jhandles instal lation can´t find ja va) Implementation o f "uicontrol" for la test Octave?, Pen-Yuan Hsing, 2010/08/20
- Re: (jhandles installation can´t find java) Implementation of "uicontrol" for latest Octave?, Martin Helm, 2010/08/20
- Re: (jhandles installation can´t find java) Imp lementation of "uicontrol" for latest Octave?, Pen-Yuan Hsing, 2010/08/20
- Re: (jhandles installation can´t find java) Implementation of "uicontrol" for latest Octave?,
Martin Helm <=
- Re: (jhandles installation can´t find java) Implementation of "uicontrol" for latest Octave?, Martin Helm, 2010/08/21
- RE: (jhandles installs.... then error) Implementation of "uicontrol" for latest Octave?, Pen-Yuan Hsing, 2010/08/21
- Re: (jhandles installs.... then error) Implementation of "uicontrol" for latest Octave?, Martin Helm, 2010/08/22
- Re: (jhandles installs.... then error) Implementation of "uicontrol" for latest Octave?, Martin Helm, 2010/08/22
- RE: (jhandles installs.... then error) Implementation of "uicontrol" for latest Octave?, Pen-Yuan Hsing, 2010/08/23
- Re: (jhandles installs.... then error) Implementation of "uicontrol" for latest Octave?, Jordi Gutiérrez Hermoso, 2010/08/23
- Re: (jhandles installs.... then error) Implementation of "uicontrol" for latest Octave?, Martin Helm, 2010/08/23
- Re: (jhandles installs.... then error) Implementation of "uicontrol" for latest Octave?, Pen-Yuan Hsing, 2010/08/23
- Re: (jhandles installs.... then error) Implementation of "uicontrol" for latest Octave?, Pen-Yuan Hsing, 2010/08/23
- RE: (jhandles installs.... then error) Implementation of "uicontrol" for latest Octave?, Pen-Yuan Hsing, 2010/08/23