[Top][All Lists]

[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.
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
some other platforms.

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

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

Best regards


View this message in context:
Sent from the Gnu - GLPK - Help mailing list archive at

reply via email to

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