On 2/20/14 8:51 AM, Kirill Muradov wrote: > Alexander Hansen <alexanderk.hansen <at> gmail.com> writes: > >> > >> >> <rant>I hate Java on OS X! On my own 10.6 environment, installed less >> than a year ago from a fresh download, the _same_ version of Java is >> installed in a different location.</rant> >> >> The problem here appears to be that fink expects that your jni.h to be >> in a particular relative location to your java home based on the Java >> version, and this isn't where it is for you. Check where the jni.h file >> actually is for your Java and we should be able to come up with a >> workaround for you before doing the real fix. >> > > > Alexander, thanks a lot for your response! > > I've searched in Finder and found 5 jni.h files. > Not sure which one is our target: > > /System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h > > /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ > JavaVM.framework/Versions/1.6.0/Headers/jni.h > > /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ > JavaVM.framework/Versions/1.6.0/Headers/jni.h > > /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ > JavaVM.framework/Versions/1.4.2/Headers/jni.h > > /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ > JavaVM.framework/Versions/1.5.0/Headers/jni.h > > Kirill > >
The first one. That's in the historically standard place for 10.6. The easiest option for you might be: sudo mkdir -p /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/1.6.0/Headers sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/1.6.0/Headers/jni.h This will put a link to the real header where Fink expects it to be. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ Fink-beginners mailing list Fink-beginners@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.beginners Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-beginners