NOTE: The examples etc below are written using DOS notation - on UNIX you will use $ for variables not % and the / will be \. All scripts are duplicated for UNIX - we aim to have this tried and tested on Linux, Mac/OSX and windows.
There will be WIFI at the course and some cable linkups.System Software
We strongly recommnd that students install these versions of software packages even if they already have some of this software. Although you may use other JDK/tomcat installations by settig environment variable - we have tested only with these versions.- Java SDK 1.4.2_XX - you may get this from Sun (you want the one on the left with NetBeans) or here is the windows installer - if you get a slightly different version you will need to change set JAVA_HOME in your environment before running setupjava script or rename the directory it is installed in. NOTE: This requires 150Mb swap on Linux to install
- NOTE: If you did the above and put on NetBeans then you already have Tomcat so skip this. Otherwise install tomcat v5.0.xx. Get this from http://jakarta.apache.org/site/binindex.cgi search in the page for "Tomcat 5.0.27" then take the approriate one in the list. Once you install this (i.e. unpack to your favorite location) you need to set CATALINA_HOME to point to the top level of the unpacked diretctory.
- A DBMS would be useful but not essential. If you have one you understand already installed that will do - make sure you have JDBC drivers for it. If you do not have a DBMS then MySQL is free and runs on most platforms.
- If you wish to use voplot 3d you need java3d get it from http://java.sun.com/products/java-media/3D/ or for linux form http://www.blackdown.org/java-linux/java2-status/java-3d-status.html. This is also the only thing in summerschoolP3 different to summerschoolP2.
- The Summer school zip contains AXIS, ANT, many VO packages and several useful scripts simply unzip it - if you do that at c: or your HOME on unix and install the jsdk in the default dir (on windows) or in HOME (on unix) then you are all set. SummerschoolFull.zip This is the Date stamp for this file you will find this in VERSION.txt of your nvoss dorectory. If it does not extis or is older than this one you need a new one.
NOTE MAC USERS Do not just click on the above link to download the zip; rather press CTRL and click on the above link and select "Download Linked File As...", then just save the file as named (XXX.zip) in the directory above your nvoss directory. You will then need to use command line unzip to unpack it.
c:\> unzip SummerschoolFull.zipNext setup the paths by running the setup script - if you did not put this in the c: (under your home dir on unix) then set VO_HOME to the directory you did put it in, in your environment before running setupjava. As pointed out above you may also set JAVA_HOME and CATALINA_HOME in this manner to point to other than the default installation.
c:\> nvoss\bin\setupjava or on unix cshell source nvoss/bin/setupjava.csh or on unix bourne shell . nvoss/bin/setupjava.shnow you have scripts like wsdl2java
Test the installation
After running setupjava go into the root of the directory and simply type :
> ant
you should see
Buildfile: build.xml
init:
[mkdir] Created dir: C:\java\test\classes
compile:
[echo] building
[javac] Compiling 1 source file to C:\java\test\classes
test:
[junit] Testsuite: sumsch.TestInstall
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.375 sec
clean:
[delete] Deleting directory C:\java\test\classes
BUILD SUCCESSFUL
bin
the bin directory contains lots of useful scripts.| mirage | will start voenabled mirage |
| topcat | will start topcat |
| wsdl2java | will execute AXIS wsdl2java to generate stubs - pass url or filename on commandline |
| adminclient | Runs the apache axis admin client |
| starttomcat stoptomcat | start and stop tomcat webserver on default port 8080. Assumes netbeans install but catalinahome in setupjava.cmd so may point to another install |
| bouncetomcat | just stop tomcat then start it |
| voplot | starts voplot plotting tool |
| vi.exe | Just for windows users :) the popular vi editor |
| downloadmanager | Starts the download manager allows queries of Cone/Siap services and file download |
| demofits | runs the demofits java module on the given fits file |
dev
This contains many eamples which will be used during the course if you want to try one look at readvotable.readvotable
Under dev there is readvotable. This is a very simple java program which list the first line of a VOTable and all its fields. There is an example table in the dir. Build it simply with with 'ant' or type it in (assuming setup is OK):javac ReadVotable.java'ant test' will run this , or type:
java readvotable.ReadVotable ..//..//data//GSC2.2-RA_180.0-Dec_-1.0-Radius_0.25.xml
