(Trying this one again in a different format, since I received no reply
the first time around)
I'm having problems with the Octave Forge Java-1.2.8 package under
Octave 3.4.3, on Mac OS X 10.6.8 and 10.7.2. The issues are:
0) It won't install on OS X without patching:
> pkg install /sw/src/java-1.2.8.tar.gz
./configure: line 3257: test: too many arguments
configure: WARNING: this package requires at least Java-1.5
(Line 3257 uses a non-portable "echo" syntax which doesn't work with
bash on current OS X versions.)
After fixing that, I found that the Java include directory wasn't being
properly located. Applying the following patches appeared to do the trick:
perl -pi -e "s/echo \-n/echo/g; s/ECHO_N='-n'/ECHO_N=/"
src/configure/src/configure.base
perl -pi -e
's|JAVA_INCS=".*"|JAVA_INCS="-I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers"|'
src/configure
1) Though the package installs, there is a runtime failure:
octave:1> errordlg('This is an error');
2011-11-22 18:21:18.595 octave[92136:903] Apple AWT Java VM was loaded
on first thread -- can't start AWT.
error: [java] java.lang.InternalError: Can't start the AWT because Java
was started on the first thread. Make sure StartOnFirstThread is not
specified in your application's Info.plist or on the command line
Google gave me some references to workarounds for "Apple AWT Java VM was
loaded on first thread" but I'm not quite sure how to patch them into
__java.cc__ .
And since I don't want to reinvent the wheel, is this something which
has reported and fixed already but not yet released in tarball form?
--
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev