In preperation for some hands on IOServiceProvider work, we need a
few things setup and ready to go. First, we'll look at how to get the
netCDF-Java/CDM code. Second, we'll build it with Ant. And, Finally, we'll run the ToolsUI application.
The current stable release code distribution can be found on
http://www.unidata.ucar.edu/software/netcdf-java/ftp://ftp.unidata.ucar.edu/pub/netcdf-java/v2.2.22/
The required source is available from a tar file at /data/nj/nj22WkshpCode.tar.gz. Unpack this in your home directory:
cd ~/ncjmkdir nj-2.2.22cd nj-2.2.22tar xvzf /data/nj/nj22WkshpCode.tar.gz
To build the netCDF-Java library (CDM) and ToolsUI application:
cd cdmant cleanant compileUIcompile - compiles the netCDF-Java/CDM codemakeJar
- builds the minimal netCDF library, ncCore-*.jar, which reads netCDF-3
files; and the full netCDF library, netcdf-*.jar, which implements the
full CDM.compileUI - compiles the netCDF-Java/CDM and ToolsUI codemakeJarUI
- builds the netCDF ToolsUI library, netcdfUI-*.jar, which includes the
netCDF library plus the user interface classes for the netCDF ToolsUI
application.Now let's run the netCDF ToolsUI application:
target/runToolsUIchmod +x target/runToolsUItarget/runToolsUI
This script runs the following command (with the classpath expanded):
java -Xmx512m -classpath <classpath> ucar.nc2.ui.ToolsUIWe'll take the next 15 minutes so you can get this setup on your machines.
Most of our netCDF-Java and THREDDS team uses IntelliJ IDEA. So, we
have IntelliJ project files available. If you know IntelliJ (or just
want to try it), we have the latest distribution available at /data/ncj/idea-6.0.5.tar.gz. It's easy and no license is required for a 30 day trail.
cd ~/njtar xvzf /data/nj/idea-6.0.5.tar.gzJDK_HOME environment variablevi ~/.bashrccd idea-6180/binvi idea.vmoptions-Xms option to -Xms256m-Xmx option to -Xmx512m./idea.sh &intelliJ/thredds.ipr/usr/java/jdk1.5.0_12)Sorry, you are on your own with Eclipse. Not many Eclipse users at Unidata.
Sorry, once again you are on your own if you want to use NetBeans.