Re: [netcdf-java] Trouble compiling from source

Hi Orion:

Im not sure what build file you are using. The java.ucar.unidata.geoloc packages were moved (since 4.0) up to a peer of cdm: unidataCommon. It should be in the ncSrc-4.1.jar (if not, get the latest version). So you just need to add unidataCommon/src/main/java to your compile source path.

On 4/26/2010 10:27 AM, Orion Poplawski wrote:
I'm trying to compile netcdf-java 4.1 from source and getting:

compile:
[mkdir] Created dir: /export/home/orion/redhat/netcdf-java-4.1/netcdf-java-4.1/cdm/target/classes [javac] Compiling 993 source files to /export/home/orion/redhat/netcdf-java-4.1/netcdf-java-4.1/cdm/target/classes [javac] /export/home/orion/redhat/netcdf-java-4.1/netcdf-java-4.1/cdm/src/main/java/thredds/catalog/ThreddsMetadata.java:42: cannot find symbol
    [javac] symbol  : class LatLonRect
    [javac] location: package ucar.unidata.geoloc
    [javac] import ucar.unidata.geoloc.LatLonRect;
    [javac]                           ^
[javac] /export/home/orion/redhat/netcdf-java-4.1/netcdf-java-4.1/cdm/src/main/java/thredds/catalog/ThreddsMetadata.java:43: cannot find symbol

It seems like a lot of files in cdm/src/main/java/ucar/unidata/geoloc are missing compared to 4.0:

diff -r netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc netcdf-java-4.1/cdm/src/main/java/ucar/unidata/geoloc Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: Bearing.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: EarthEllipsoid.java
Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: Earth.java
Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: EarthLocationImpl.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: EarthLocation.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: LatLonPointImpl.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: LatLonPoint.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: LatLonRect.java Only in netcdf-java-4.1/cdm/src/main/java/ucar/unidata/geoloc/ogc: WKTParser.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: package.html
Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: projection
Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: ProjectionImpl.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: Projection.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: ProjectionPointImpl.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: ProjectionPoint.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: ProjectionRect.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: StationImpl.java Only in netcdf-java-4.0/cdm/src/main/java/ucar/unidata/geoloc: Station.java




  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: