Hi all,
I'm trying to get the various Java apps built and am running into some
difficulties. I followed the README instructions for ANT and went towards
'ant build' in the java/source directory. This proceeded along fine until
topcat, which gave me:
build:
[javac] Compiling 50 source files to
/Users/bradcavanagh/development/starlink/java/source/topcat/build/classes
[javac]
/Users/bradcavanagh/development/starlink/java/source/topcat/src/main/uk/ac/starlink/topcat/ControlWindow.java:59:
package uk.ac.starlink.topcat.join does not exist
[javac] import uk.ac.starlink.topcat.join.MatchWindow;
[javac] ^
[javac]
/Users/bradcavanagh/development/starlink/java/source/topcat/src/main/uk/ac/starlink/topcat/ControlWindow.java:102:
cannot resolve symbol
[javac] symbol : class MatchWindow
[javac] location: class uk.ac.starlink.topcat.ControlWindow
[javac] private MatchWindow matchWindow;
[javac] ^
[javac]
/Users/bradcavanagh/development/starlink/java/source/topcat/src/main/uk/ac/starlink/topcat/ControlWindow.java:368:
cannot resolve symbol
[javac] symbol : class MatchWindow
[javac] location: class uk.ac.starlink.topcat.ControlWindow
[javac] public MatchWindow getMatchWindow() {
[javac] ^
[javac]
/Users/bradcavanagh/development/starlink/java/source/topcat/src/main/uk/ac/starlink/topcat/ControlWindow.java:370:
cannot resolve symbol
[javac] symbol : class MatchWindow
[javac] location: class uk.ac.starlink.topcat.ControlWindow
[javac] matchWindow = new MatchWindow( this );
[javac] ^
[javac] 4 errors
BUILD FAILED
file:/Users/bradcavanagh/development/starlink/java/source/topcat/build.xml:394:
Compile failed; see the compiler error output for details.
I then went to try treeview, but that apparently requires topcat to be
built and installed because it gave:
build:
[javac] Compiling 113 source files to
/Users/bradcavanagh/development/starlink/java/source/treeview/build/classes
[javac]
/Users/bradcavanagh/development/starlink/java/source/treeview/src/main/uk/ac/starlink/treeview/StarTableDataNode.java:30:
package uk.ac.starlink.topcat does not exist
[javac] import uk.ac.starlink.topcat.ControlWindow;
[javac] ^
[javac]
/Users/bradcavanagh/development/starlink/java/source/treeview/src/main/uk/ac/starlink/treeview/StarTableDataNode.java:181:
cannot resolve symbol
[javac] symbol: variable ControlWindow
[javac] ControlWindow.getInstance()
[javac] ^
[javac] 2 errors
BUILD FAILED
file:/Users/bradcavanagh/development/starlink/java/source/treeview/build.xml:551:
Compile failed; see the compiler error output for details.
I then assumed that SoG built and installed since it didn't give any
errors when building and installing, so I set SOG_DIR appropriately and
ran $SOG_DIR/runSOG and got:
[pippin:starbuild/bin/sog] bradcava% $SOG_DIR/runSOG
Starting SOG
Exception in thread "main" java.lang.UnsatisfiedLinkError: couldn't load
library jniast: Can't load library:
/Users/bradcavanagh/development/starbuild/lib/ppc/libjniast.jnilib
at uk.ac.starlink.util.Loader.loadLibrary(Loader.java:140)
at uk.ac.starlink.ast.AstObject.<clinit>(AstObject.java:44)
at uk.ac.starlink.ast.grf.DefaultGrf.<clinit>(DefaultGrf.java:109)
at uk.ac.starlink.ast.gui.AstAxes.setDefaults(AstAxes.java:133)
at uk.ac.starlink.ast.gui.AstAxes.<init>(AstAxes.java:118)
at
uk.ac.starlink.ast.gui.PlotConfiguration.<init>(PlotConfiguration.java:87)
at
uk.ac.starlink.sog.SOGNavigatorImageDisplay.<init>(SOGNavigatorImageDisplay.java:493)
at
uk.ac.starlink.sog.SOGNavigatorImageDisplayControl.makeImageDisplay(SOGNavigatorImageDisplayControl.java:53)
at
jsky.image.gui.ImageDisplayControl.<init>(ImageDisplayControl.java:85)
at
jsky.navigator.NavigatorImageDisplayControl.<init>(NavigatorImageDisplayControl.java:32)
at
uk.ac.starlink.sog.SOGNavigatorImageDisplayControl.<init>(SOGNavigatorImageDisplayControl.java:30)
at
uk.ac.starlink.sog.SOGNavigatorImageDisplayFrame.makeImageDisplayControl(SOGNavigatorImageDisplayFrame.java:55)
at
jsky.image.gui.ImageDisplayControlFrame.<init>(ImageDisplayControlFrame.java:59)
at
jsky.image.gui.ImageDisplayControlFrame.<init>(ImageDisplayControlFrame.java:111)
at
jsky.image.gui.ImageDisplayControlFrame.<init>(ImageDisplayControlFrame.java:127)
at
jsky.navigator.NavigatorImageDisplayFrame.<init>(NavigatorImageDisplayFrame.java:58)
at
uk.ac.starlink.sog.SOGNavigatorImageDisplayFrame.<init>(SOGNavigatorImageDisplayFrame.java:44)
at
uk.ac.starlink.sog.SOG.makeNavigatorImageDisplayFrame(SOG.java:414)
at uk.ac.starlink.sog.SOG.makeFrameLayout(SOG.java:329)
at uk.ac.starlink.sog.SOG.<init>(SOG.java:165)
at uk.ac.starlink.sog.SOG.main(SOG.java:691)
Caused by: java.lang.UnsatisfiedLinkError: no jniast in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at uk.ac.starlink.util.Loader.loadLibrary(Loader.java:105)
... 20 more
My /Users/bradcavanagh/development/starbuild/lib/ppc/ directory is empty,
but I have JNIAST-related things in lib/x86, lib/i386, and lib/sparc, so
JNIAST appears to be doing something, just not the right thing for me. Any
ideas on how I can get this working? It would be kind of neat to get
treeview, topcat, and SoG working for NAM if someone brings a Mac to the
Starlink demo. Kind of last minute but hey, grace under pressure and all
that. :-)
Cheers,
Brad.
|