aboutsummaryrefslogtreecommitdiff
path: root/vendor/voclient/libvoclient/examples/simple.java
blob: fb1e79b62ea19abd47f13e0637bd84f2a25172bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

public class simple {

   public static void main (String[] argv) {

     //  Load the VOClient shared library.
     try {
        System.loadLibrary ("voclient");

     } catch (UnsatisfiedLinkError Err) {
	System.err.println ("Load Error " + Err);
	System.exit (1);
     }

     //  Call a simple Cone service.
     System.out.println (
	voclient.voc_coneCaller (
	    "http://www.nofs.navy.mil/cgi-bin/vo_cone.cgi?CAT=USNO-B1&",
	    0.0, 0.0, 0.05, 1)
     );

   }
}