On Tue, 12 Feb 2008, Matthijs H.D. van der Wiel wrote:
> If I run splat from a terminal and click 'file' --> 'open' to open one
> of the GaiaTempSpectrumx.sdf files, I get the following output in the
> terminal (and the same pop-up window saying that the spectrum has an
> unkown type, format or name syntax):
>
> * * * * * *
> ~/data/SLS/M07BN03 >Feb 12, 2008 9:58:09 AM
> uk.ac.starlink.splat.imagedata.NDFJ <clinit>
> WARNING: Failed to load the Starlink SPLAT-VO JNI library
> Feb 12, 2008 9:58:09 AM uk.ac.starlink.splat.imagedata.NDFJ <clinit>
> WARNING: No native NDF support available
> Feb 12, 2008 9:58:09 AM uk.ac.starlink.splat.data.SpecDataFactory
> makeNDFSpecDataImpl
> INFO: No native NDF support, using less efficient NDX/JNIHDS access
> Feb 12, 2008 9:58:09 AM uk.ac.starlink.hds.HDSPackage isAvailable
> INFO: couldn't load library jnihds:
> /Applications/starlink/star/starjava/lib/i386/libjnihds.jnilib:
> java.lang.UnsatisfiedLinkError: couldn't load library jnihds:
> /Applications/starlink/star/starjava/lib/i386/libjnihds.jnilib:
> at uk.ac.starlink.util.Loader.loadLibrary(Loader.java:149)
> at uk.ac.starlink.hds.HDSObject.<clinit>(HDSObject.java:96)
> at uk.ac.starlink.hds.HDSPackage.isAvailable(HDSPackage.java:34)
> at uk.ac.starlink.hds.NDFNdxHandler.getInstance(NDFNdxHandler.java:70)
> at uk.ac.starlink.hds.NDFNdxHandler.<clinit>(NDFNdxHandler.java:54)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:164)
> at uk.ac.starlink.ndx.NdxIO.<init>(NdxIO.java:74)
> at uk.ac.starlink.splat.data.NDXSpecDataImpl.open(NDXSpecDataImpl.java:338)
> at uk.ac.starlink.splat.data.NDXSpecDataImpl.<init>(NDXSpecDataImpl.java:90)
> at uk.ac.starlink.splat.data.SpecDataFactory.makeNDFSpecDataImpl(SpecDataFactory.java:400)
> at uk.ac.starlink.splat.data.SpecDataFactory.makeLocalFileImpl(SpecDataFactory.java:357)
> at uk.ac.starlink.splat.data.SpecDataFactory.get(SpecDataFactory.java:332)
> at uk.ac.starlink.splat.data.SpecDataFactory.get(SpecDataFactory.java:222)
> at uk.ac.starlink.splat.iface.SplatBrowser.tryAddSpectrum(SplatBrowser.java:1934)
> at uk.ac.starlink.splat.iface.SpectrumIO.addSpectra(SpectrumIO.java:311)
> at uk.ac.starlink.splat.iface.SpectrumIO$2.run(SpectrumIO.java:260)
> Caused by: java.lang.UnsatisfiedLinkError:
> /Applications/starlink/star/starjava/lib/i386/libjnihds.jnilib:
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
> at java.lang.Runtime.loadLibrary0(Runtime.java:822)
> at java.lang.System.loadLibrary(System.java:993)
> at uk.ac.starlink.util.Loader.loadLibrary(Loader.java:114)
> ... 16 more
> Feb 12, 2008 9:58:09 AM uk.ac.starlink.hds.HDSPackage isAvailable
> WARNING: JNIHDS load failed - no HDF/HDS access
> * * * * * *
>
> On repeating the request to load the GaiaTempSpectrum into Splat, the
> error message reduces to:
>
> * * * * * *
> ~/data/SLS/M07BN03 >Feb 12, 2008 10:02:48 AM
> uk.ac.starlink.splat.data.SpecDataFactory makeNDFSpecDataImpl
> INFO: No native NDF support, using less efficient NDX/JNIHDS access
> * * * * * *
Hi Matthijs,
thanks for all that! Sadly it looks very broken, plus for some reason
(which I'd gathered from a similar attempt using a 10.5 PPC machine), the
actual missing dependency isn't shown as part of the error, not a very
helpful version of Java.
The only option open to you now is to rebuild the JNI libraries that SPLAT
depends on and try those (if you want to and have a development setup on
your machine, if not you'll have to wait until JAC updates their machine).
To make that as easy as possible I've created a tar file with all the
necessary source code:
http://astro.dur.ac.uk/~pdraper/test/starjava_jni.tar.gz
just download this, unpack it and do:
STARLINK_DIR=/star (or wherever)
cd jni
./buildall
if that works it should create three ".jnilib" files. These should be
copied into the $STARLINK_DIR/starjava/lib/i386 directory to replace the
ones. If that worked see if SPLAT can open your extraction from GAIA, if
not let me know what it shows now.
Cheers,
Peter.
--
Peter W. Draper, http://astro.dur.ac.uk/~pdraper
|