Martin Costabel wrote:
> Michael Baudis wrote:
> > gcc -flat_namespace -DHAVE_CONFIG_H -I. -I. -I. -DOPTIMIZE_POWERPC -O3
> > -g -fsigned-char
> > -I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/../
> > ../../Headers -c javaglue.c   -fno-common -DPIC -o javaglue.lo
> > javaglue.h:6: header file 'jni.h' not found
> 
> It looks like Apple's java-1.4.1 update screwed up some parts of the
> pile of symlink spaghetti in the JavaVM framework. In the above include
> directory, which in reality is
> /System/Library/Frameworks/JavaVM.framework/Versions/A/Headers, I see
> jni.h as a symlink to ../../CurrentJDK/Headers/jni.h which does not
> exist. In "../../", "CurrentJDK" is a symlink (at least for me) to
> "1.4.1", and in "1.4.1" there is no subdirectory "Headers". If this is
> the same for you, maybe you should change this symlink
> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK from
> "1.4.1" to "1.3.1".

JavaVM.framework/Versions/A/Headers will always point to the headers 
for the "default" VM, which is 1.4.1 if 1.4.1 is installed. The 1.4.1 
headers will be missing if the separate Java 1.4.1 Developer Tools 
package is not installed. If you intend to build and run with Java 
1.4.1, you should install the 1.4.1 Developer Tools, which is available 
from the "Download Software" area of your ADC account.


> Or maybe the "Home/../../../" part should be scrapped and the above
> include directory should be hardcoded to be
> /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers

This is the correct solution if you want to build and run with 1.3.1. 
You may also need to specify the location of the java/javac executables 
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Commands/*


-- 
Greg Parker     [EMAIL PROTECTED]




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to