octave-maintainers
[Top][All Lists]
Advanced

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

Re: [OctDev] Need for JHandles/Linux tester


From: Paul Kienzle
Subject: Re: [OctDev] Need for JHandles/Linux tester
Date: Sat, 7 Jul 2007 00:39:44 -0400


On Jul 6, 2007, at 3:36 AM, Michael Goffioul wrote:

On 7/6/07, Paul Kienzle <address@hidden> wrote:

Finally, the jhandles compile is failing with "cannot find symbol Class
Matrix" despite the fact that I have a fully qualified name for
octave.jar on the CLASSPATH.  I don't know enough Java to debug this.

Did you grab the java package from CVS? (this is required). If yes, can you check that the octave.jar file used at jhandles compilation time contains the
file org/octave/Matrix.class? (a jar file is simply a zip file, you
can inspect it
with "jar" or any zip utility)
If it still does not work, can you report the compilation log?

Compile of jhandles is now working. Again I hacked the Makefile directly rather than dealing with autoconf immediately.

 HAVE_JAVA=yes
 JAVAC=javac
 JAR=jar
 JOGL_JAR=$(HOME)/Library/Java/Extensions/jogl.jar
 OCTAVE_JAR=$(HOME)/octave/java/octave.jar
 OCTAVE_PATHSEP=:

I put jogl and its associated jnilib files in ~/Library/Java/Extensions in hopes that I won't have to set DYLD_LIBRARY_PATH to point to them.

Running the example you gave earlier:

 page_screen_output(0); % do not buffer output
 h = uicontrol('string', 'OK'); % should create a push button
set(h, 'callback', @(h,e) disp('button clicked')); % add a callback to the button uicontrol('style', 'edit', 'min', 0, 'max', 2, 'position', [10 45 200 300], ... 'horizontalalignment', 'left', 'backgroundcolor', 'w'); % should create a text edit area

I get
 [Java CocoaComponent compatibility mode]: Enabled
[Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
 h=-1

At this point the java client hangs, and nothing is displayed.

        - Paul



reply via email to

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