Re: cannot find java include files (MacOSX 10.9)
Jochem Liem <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CABryw9RD+31E=EXL6TQenPszH7kNDvJHXmeG1x3KMFpgtLJHqA@mail.gmail.com> |
Hi Paulo, Thanks. With a JAVA_HOME set I can now compile the git version. However, the MacPorts version gives the same error. I did a 'sudo port clean --all swi-prolog' before compiling again. Perhaps the installation process is searching for the java include files in the wrong place? echo $JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home From the log file: :info:build checking for javac... (cached) /usr/bin/javac :info:build checking symlink for /usr/bin/javac... /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac :info:build configure: error: cannot find java include files :info:build make[1]: *** [configure] Error 1 Best regards, Jochem On Fri, Nov 15, 2013 at 4:15 PM, Paulo Moura <[email protected]> wrote: > Hi Jochem, > > On 15/11/2013, at 13:12, Jochem Liem <[email protected]> wrote: > >> Dear all, >> >> I have a fresh install of MacOSX 10.9, but run into trouble compiling >> both the git version and the MacPorts version of SWI-Prolog. During >> 'configure' there is an error indicating that the java include files >> cannot be found (see below). >> >> I've installed the Java update from Apple and even the Java SDK from >> Oracle. It does not change anything. The java and javac commands are >> available from the command line. >> >> Any clue how I can resolve this? > > Install Oracle's latest JDK and set your JAVA_HOME environment variable pointing to it. Something like: > > export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home > > Cheers, > > Paulo > > ----------------------------------------------------------------- > Paulo Moura > Logtalk developer > > Email: <mailto:[email protected]> > Web: <http://logtalk.org/> > ----------------------------------------------------------------- > > > > > _______________________________________________ > SWI-Prolog mailing list > [email protected] > https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Jochem Liem, MSc. Informatics Institute Faculty of Science University of Amsterdam http://www.science.uva.nl/~jliem/ Mobile: +31 (0)6 4321 9992 Visitor address: Science Park 904, C2.248 1098 XH Amsterdam Mailing address: Postbus 94323 1090 GH Amsterdam The Netherlands =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=