help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Trouble building GLPK-Java-1.0.6 on a Mac


From: xypron
Subject: Re: [Help-glpk] Trouble building GLPK-Java-1.0.6 on a Mac
Date: Thu, 3 Dec 2009 11:55:40 -0800 (PST)

Hello Kristian,

>> - tried to build again, this time receiving the error "jni.h: No such
>> file or directory" 

when installing Java on your computer you can either only install the Java
Runtime Enggine (JRE)
or the Java Development Kit (JDK). Jni.h is only included in the Java
Development Kit, which
should be preinstalled with Mac OS X.

http://developer.apple.com/Mac/library/documentation/Java/Conceptual/Java14Development/05-CoreJavaAPIs/CoreJavaAPIs.html
says:
When building JNI libraries, you need to explicitly designate the path to
jni.h. This is in 
/System/Library/Frameworks/JavaVM.framework/Headers/, not /usr/include/ as
on 
some other platforms.

When I wrote the makfile for GLPK-Java I was working on a Debian Linux
system.

Please edit swig/Makefile and change the definition of SWIG_FLAGS
accordingly:
SWIG_FLAGS = -I/System/Library/Frameworks/JavaVM.framework/Headers

Best regards

Xypron

-- 
View this message in context: 
http://old.nabble.com/Trouble-building-GLPK-Java-1.0.6-on-a-Mac-tp26625240p26632138.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]