[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Java and autotools
From: |
Daniel J Sebald |
Subject: |
Re: Java and autotools |
Date: |
Mon, 26 Nov 2012 02:59:14 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 |
On 11/25/2012 11:13 PM, Rik wrote:
11/25/12
John,
Would it be helpful to borrow some of the Java-related macros from the
Autoconf Archive rather than rolling our own? See
http://www.gnu.org/software/autoconf-archive/The-Macros.html#The-Macros and
search for the word java. There are several that I think could be useful.
Currently, I'm not able to build on kubuntu 10.04 with OpenJDK6. The build
can't find jni.h which I think could be fixed by using the
ax_jni_include_dir macro. I don't mind volunteering to try and get these
to work, but I won't push forward if you think it is the wrong way to go.
--Rik
For now, I've put symbolic links to jni.h and jni_md.h in /usr/include.
I had to manually set JAVAC and JAR in a make file, but that might be
because I didn't have javac and jar installed at the time of configure
but didn't want to recompile the whole lot.
I see a FindJNI.cmake on my system, if that is of any help.
...
I managed to run dlgtest by setting JAVA_HOME to
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin. However, the test
doesn't complete because the path doesn't seem correct given I built in
a directory other than the base source tree:
octave:1> dlgtest(0)
0 ... STOP
1 ... listdlg tests
2 ... errordlg tests
3 ... warndlg tests
4 ... helpdlg tests
5 ... inputdlg tests
6 ... TeX code tests
Run which test? [0] > 1
- test listdlg with selectionmode single. No caption, no prompt.
error: octave jar does not exist:
/usr/local/src/octave/octave/build-gui-9/../octave/scripts/java/octave.jar
error: called from:
error:
/usr/local/src/octave/octave/build-gui-9/../octave/scripts/java/listdlg.m at
line 116, column 8
error:
/usr/local/src/octave/octave/build-gui-9/../octave/scripts/java/dlgtest.m at
line 111, column 6
error:
/usr/local/src/octave/octave/build-gui-9/../octave/scripts/java/dlgtest.m at
line 80, column 9
The file "octave.jar" is in the build directory, not the source
directory, i.e.,
[~]# ls /usr/local/src/octave/octave/build-gui-9/scripts/java/octave.jar
/usr/local/src/octave/octave/build-gui-9/scripts/java/octave.jar
[~]# ls
/usr/local/src/octave/octave/build-gui-9/../octave/scripts/java/octave.jar
ls: cannot access
/usr/local/src/octave/octave/build-gui-9/../octave/scripts/java/octave.jar:
No such file or directory
I'm guessing something is slightly off with the configuration script
regarding the java commands.
Dan