|
From: | Paul Kienzle |
Subject: | Re: [OctDev] Need for JHandles/Linux tester |
Date: | Fri, 6 Jul 2007 22:50:31 -0400 |
On Jul 6, 2007, at 3:36 AM, Michael Goffioul wrote:
On 7/6/07, Paul Kienzle <address@hidden> wrote:Still not sure if it works.You can test the java package with the following simple script: f = java_new('java.awt.Frame'); f.setSize(300,300); f.show(); % this shows the window sleep(10); f.dispose(); % this closes the window
Okay, I got this script to work, except that f.dispose() doesn't close the window. Suggestions?
In order to debug the problem I restructured your initialize_jvm code so that the errors about things not being found gave details of where it was looking (see attached).
Note that I couldn't get __java__ to work in the architecture specific directory, so I left it beside the jar files. I call initial_java_dir(true) because of this change.
The complete recipe: Grab extra/java from octave-forge CVS Modify Makefile so that it doesn't require configure (see attached) make mkdir ~/octave/java cp *.oct *.jar ../inst/*.m ../PKG_* ~/octave/java
__java__.diff
Description: Binary data
Makefile.diff
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |