[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Octave 4.2.2 fails to compile with OpenJDK 9.0.4
From: |
Alois Schlögl |
Subject: |
Octave 4.2.2 fails to compile with OpenJDK 9.0.4 |
Date: |
Mon, 9 Apr 2018 08:56:00 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
I'm trying to compile Octave 4.2.2 from source
https://ftp.gnu.org/gnu/octave/octave-4.2.2.tar.xz
with OpenJDK 9.0.4 on Debian 9 (Stretch)/AMD64. OpenJDK 9.0.4 is
wnloaded and from http://jdk.java.net/9/, and the environment variable
JAVA_HOME is set to the corresponding path.
Runing these commands:
export JAVA_HOME=...
./configure --prefix=....
make
fails for me with this error:
GEN scripts/java/org/octave/ClassHelper.class
error: Source option 1.3 is no longer supported. Use 1.6 or later.
error: Target option 1.3 is no longer supported. Use 1.6 or later.
Makefile:27354: recipe for target
'scripts/java/org/octave/ClassHelper.class' failed
make[2]: *** [scripts/java/org/octave/ClassHelper.class] Error 2
I tried also
./configure --with-gnu-ld --with-java-homedir="$JAVA_HOME" --prefix=/
with the same result.
When manually "fixing" the Makefile with the attached patch, the
compilation will run.
Do you have any suggestions how how to fix this ?
Kind regards,
Alois
octave-java9.patch
Description: Text Data
- Octave 4.2.2 fails to compile with OpenJDK 9.0.4,
Alois Schlögl <=