I have an Apple laptop running 10.6.7 and I somehow managed to get into a situation where Java header files are actually (empty) directories. The laptop came with 10.6.7 pre-installed. I ran "Software Update", installed Xcode 3.2.6, and installed MacPorts. When trying to install port "db46" I get compilation errors, because jni.h is broken.
How do I fix this?
bash-3.2# pwd
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
bash-3.2# ls -la
total 64
drwxr-xr-x 17 root wheel 578 May 5 11:28 .
drwxr-xr-x 10 root wheel 340 Mar 29 19:22 ..
drwxr-xr-x 2 root wheel 68 May 5 11:28 AWTCocoaComponent.h
drwxr-xr-x 2 root wheel 68 May 5 11:28 JDWP.h
drwxr-xr-x 2 root wheel 68 May 5 11:28 JDWPCommands.h
-rw-r--r-- 1 root wheel 179 Oct 24 2010 JavaVM.h
-rw-r--r-- 1 root wheel 2390 Oct 24 2010 NSJavaConfiguration.h
-rw-r--r-- 1 root wheel 2060 Oct 24 2010 NSJavaVirtualMachine.h
-rw-r--r-- 1 root wheel 19394 Oct 24 2010 classfile_constants.h
drwxr-xr-x 2 root wheel 68 May 5 11:28 jawt.h
drwxr-xr-x 2 root wheel 68 May 5 11:28 jawt_md.h
drwxr-xr-x 2 root wheel 68 May 5 11:28 jdwpTransport.h
drwxr-xr-x 2 root wheel 68 May 5 11:28 jni.h
drwxr-xr-x 2 root wheel 68 May 5 11:28 jni_md.h
drwxr-xr-x 2 root wheel 68 May 5 11:28 jvmdi.h
drwxr-xr-x 2 root wheel 68 May 5 11:28 jvmpi.h
drwxr-xr-x 2 root wheel 68 May 5 11:28 jvmti.h