NSF Unidata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #LEA-289229]: compiling an example java file

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.



Larry,

The classpath needs to be set for the compilation and running of 
Simple_xy_rd.java

For the csh shell

% setenv CLASSPATH ".:<location of>/netcdfAll-4.1.jar"

for sh
% CLASSPATH=.:<location of>/netcdfAll-4.1.jar

expand <location of> to be the absolute path of the netcdfAll-4.1.jar on your 
system

compile

% javac Simple_xy_rd.java

run

% java -Xmx256m Simple_xy_rd

Robb...



Ticket Details
===================
Ticket ID: LEA-289229
Department: Support netCDF Java
Priority: Normal
Status: Open