@Author Greg von Nessi

To Compile HDF5 using Java 1.6 64bit under OS X

1. First compile zlib and szip
     - Download from HDF site
     - pass --prefix=/usr/local CFLAGS="-arch x86_64" to configure
     - make and make install per normal
2. Compile jpeg library
     - Download from HDF site (look under hdf4 page)
     - pass --prefix=/usr/local --enable-shared --enable-static CFLAGS=-"arch x86_64" to configure
     - make sure you have install gnu libtool tool... this will not overwrite the apple libtool... the executable will be installed in /usr/local/bin
     - Need to change the makefile
           * Should read: CFLAGS= -arch x86_64  -I$(srcdir)
           * Should read: LDFLAGS= -arch x86_64 -undefined dynamic_lookup
           * Should read: LIBTOOL = /usr/local/bin/libtool
     - make and make install
3. You will not be able to compile HDF4. This will not work anyway with OS X due to how dynlibs are structured.
4. Compile HDF5
     - Download source from HDF site
     - pass --prefix=/usr/local CFLAGS="-arch x86_64" to configure
     - make and make install per normal
5. Compile java-hdf
     - Download from HDF site
     - sudo ./configure CFLAGS="-arch x86_64" --prefix=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0 -build=powerpc-apple --with-jdkclasses=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes --with-javabin=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin --with-jdk=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers,/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes --with-hdf5=/usr/local/include,/usr/local/lib --without-hdf4 --with-libsz=/usr/local/include,/usr/local/lib --with-libz=/usr/local/include,/usr/local/lib --with-libjpeg=/usr/local/include,/usr/local/lib
     - Change the makefile in native/hdf5lib
            * Should read: LDOPT=-bundle -arch x86_64 -undefined dynamic_lookup
            * Should read: CFLAGS = -arch x86_64 -DH5_USE_16_API -D_FILE_OFFSET_BITS=64 $(DEFS) -I. -I$(HDF5INC) -I$(JAVAINC1) -I$(JAVAINC2)
     - make and make install
     - go to test/linktest
     - make
     - sudo ./testlink
6. If no errors arose in the above test then the library should be installed. If an error arose, make sure you are using the newest developer release of java 1.6 from apple.
7. Copy the libjhd5.jnilib file to /usr/lib/java... it's not necessary to copy anything anywhere else, as the proper jar files SHOULD be in the project workspace path (the jar files should be platform independent, so you can just use the ones on svn)