help-octave
[Top][All Lists]
Advanced

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

Re: (newer Java package needed?) Implementation of "uicontrol" for lates


From: Martin Helm
Subject: Re: (newer Java package needed?) Implementation of "uicontrol" for latest Octave?
Date: Fri, 20 Aug 2010 19:18:28 +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, 18:39:09 schrieb Pen-Yuan Hsing:
> On 2010/08/20 11:55, Martin Helm wrote:
> > Am Freitag, 20. August 2010, 17:47:20 schrieb Pen-Yuan Hsing:
> >> On 2010/08/20 05:41, Martin Helm wrote:
> >>> Am Freitag, 20. August 2010, 02:21:21 schrieb Tatsuro MATSUOKA:
> >>>> Hello
> >>>> 
> >>>> Current situation of Jhandle has been written by Michael as a reply to
> >>>> the ML topic.
> >>>> 
> >>>> Trouble with jhandles--installation issue?
> >>>> 
> >>>> Thread
> >>>> http://octave.1599824.n4.nabble.com/Trouble-with-jhandles-installation
> >>>> -i ssu e-tt2317282.html
> >>>> 
> >>>> Point to Michal's reply
> >>>> http://octave.1599824.n4.nabble.com/Trouble-with-jhandles-installation
> >>>> -i ssu e-td2317282.html#a2320473
> >>>> 
> >>>> AS sentence in the above post
> >>>> *****
> >>>> So the bottom line is: current jhandles implementation is not suited
> >>>> for current octave code. *****
> >>>> 
> >>>> Perhaps this is the reason why the jhandle package is disappeared from
> >>>> the current octave-forge site.
> >>>> 
> >>>> I am not a Matlab user so that the above is all I can tell you.
> >>>> 
> >>>> Regards
> >>>> 
> >>>> Tatsuro
> >>>> 
> >>>> --- Pen-Yuan Hsing wrote:
> >>>>> Hello,
> >>>>> 
> >>>>> As a new Octave user, I am trying to get our lab's Matlab graphics
> >>>>> program (in the form of a bunch of .m files) to work in Octave. I
> >>>>> loaded them up and try to run it, but it told me that there is no
> >>>>> definition of the "uicontrol" function.
> >>>>> After some searching, I realised that "uicontrol" might not be
> >>>>> implemented in Octave yet, but there exists the JHandles package that
> >>>>> takes care of it. Unfortunately, I cannot find a place to download
> >>>>> this package anywhere, including Octave Forge. Therefore:
> >>>>> 
> >>>>> 1. Is there a place to download the latest JHandles package?
> >>>>> 
> >>>>> OR
> >>>>> 
> >>>>> 2. Is there an alternative solution to getting my program to work?
> >>>>> 
> >>>>> Thank you very much.
> >>>>> 
> >>>>> P.S. I am running Octave under Mac OS X 10.6.
> >>> 
> >>> You can give jhandles 0.3.5 a try if you are working with octave 3.2.4
> >>> and the java-1.2.7 package
> >>> 
> >>> http://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/
> >>> R2 009-05-08/jhandles-0.3.5.tar.gz/download
> >>> 
> >>> I compiled it on my linux machine for 3.2.4 and with that version this
> >>> jhandles version works (I have also the development version and 3.3.52
> >>> on my machine but never tried to make it run with the newer versions
> >>> and I guess it will not work without changes to the source code).
> >>> Since it works on my linux machine but has problems with the same
> >>> octave version on windows machines there is no guarantee that it will
> >>> work on mac.
> >>> 
> >>> But maybe it is worth the effort to try this combination.
> >>> 
> >>> - mh
> >> 
> >> Hello again,
> >> 
> >> I managed to install packages for my 64-bit Mac OS X running latest
> >> Octave.app by following the instructions here:
> >> 
> >> http://www.supermegaultragroovy.com/blog/2009/09/17/installing-octave-pa
> >> cka ges-in-snow-leopard/
> >> 
> >> However, when I try to install JHandles, it fails and tells me:
> >> 
> >> "./configure: line 3366: test: 1.6.0_20: integer expression expected
> >> configure: WARNING: this package requires at least Java-1.5
> >> make: *** [all] Error 255
> >> ....."
> >> 
> >> The Octave Forge website provides Java 1.2.7, is there a place to find a
> >> newer Java version>1.5 to make JHandles work?
> >> 
> >> Thanks!!
> > 
> > This message does not mean that you need a newer java package (java
> > packgae version 1.5 does not exist), but that the configure is not able
> > to interpret the java version string 1.6.0_20 and therefore does not
> > recognize that you have already java version>= 1.5 installed.
> > Unfortuneately I cannot tell you how to solve that because I have no mac
> > and on my system this did not happen, so I cannot reproduce that.
> > Hopefully one of the mac users will know a solution.
> > 
> > - mh
> 
> Just to experiment, I tried to do this in my Ubuntu virtual machine and
> got the say error message saying "Java support not compiled" (even
> though I installed the java package from Octave Forge). Does anyone have
> experience in this regard?

You need to check if the environment variable JAVA_HOME is set correctly and 
there was one nasty trick that jhandles expect a client folder instead of a 
server folder in the java installation at the right place.

It is in the folder /usr/lib64/jvm/jre/lib/amd64 on opensuse 64 bit.
Just make a symbolic link named client in that folder (but check before the 
folder can be different on ubuntu) which points to server.

If it tells you that it cannot find jogl make sure yiu have jogl installed.

I hope there was nothing else which I forgot now.

- mh



reply via email to

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