Mac OS 10.9, errors regarding java, ant

Discussions on installation issues go here.
soeren
Posts: 23
Joined: 12 Jul 2012, 22:25

Mac OS 10.9, errors regarding java, ant

Postby soeren » 16 Jul 2014, 14:31

No question here, just trying to safe some time of someone having similar issues. I just installed polymake on Mac OS 10.9 via Fink and had some (small) issues. I did everything as described in http://polymake.org/doku.php/howto/mac_compiling_fink , but running 'make' I got the error

Code: Select all

Unable to find a $JAVA_HOME at “/usr”, continuing with system-provided Java
which is easily solved by running

Code: Select all

export JAVA_HOME="$(/usr/libexec/java_home)"
before 'configure'.

Afterwards the error

Code: Select all

javac1.8 class not found
appeared, which is a bug in ant 1.8 (as far as I know). Since there's no ant 1.9 in Fink, the easiest solution seems to be to use the '-Dbuild.compiler=javac1.7' parameter for ant. That is, running configure with

Code: Select all

./configure LDFLAGS='-stdlib=libstdc++' CXXFLAGS='-I/usr/include/c++/4.2.1' --with-ant='/sw/bin/ant -Dbuild.compiler=javac1.7'
and everything compiles just fine.

User avatar
assarf
Developer
Posts: 74
Joined: 12 Oct 2011, 15:52

Re: Mac OS 10.9, errors regarding java, ant

Postby assarf » 17 Jul 2014, 08:54

Thank you. :-)
no signature


Return to “Installing polymake”