Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #1

Open
leejunghan opened this issue May 31, 2017 · 1 comment
Open

error #1

leejunghan opened this issue May 31, 2017 · 1 comment

Comments

@leejunghan
Copy link

leejunghan commented May 31, 2017

Hi I'm Jung-Han Lee.
I compiled the Testing.java in the test folder. But I can't fix the error.
Could you help me please?

C:\Users\LJH-PC\Downloads\NC2KML-master\NC2KML-master

NC2KML-master
-> lib
-> release
-> src
->test


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\LJH-PC>cd C:\Users\LJH-PC\Downloads\NC2KML-master\NC2KML-master\test\ne
tcdftokml\test

C:\Users\LJH-PC\Downloads\NC2KML-master\NC2KML-master\test\netcdftokml\test>java
c Testing.java
Testing.java:9: error: package org.apache.log4j does not exist
import org.apache.log4j.Logger;
^
Testing.java:10: error: package org.apache.log4j does not exist
import org.apache.log4j.PropertyConfigurator;
^
Testing.java:12: error: package ucar.nc2.dataset does not exist
import ucar.nc2.dataset.NetcdfDataset;
^
Testing.java:13: error: package es.socib.netcdftokml does not exist
import es.socib.netcdftokml.AdditionalInfo;
^
Testing.java:14: error: package es.socib.netcdftokml does not exist
import es.socib.netcdftokml.DeploymentInfo;
^
Testing.java:15: error: package es.socib.netcdftokml does not exist
import es.socib.netcdftokml.KmlManager;
^
Testing.java:16: error: package es.socib.netcdftokml does not exist
import es.socib.netcdftokml.KmlManagerException;
^
Testing.java:23: error: cannot find symbol
private static Logger logger = Logger.getLogger(Testing.class.getSimpleN
ame());
^
symbol: class Logger
location: class Testing
Testing.java:23: error: cannot find symbol
private static Logger logger = Logger.getLogger(Testing.class.getSimpleN
ame());
^
symbol: variable Logger
location: class Testing
Testing.java:34: error: cannot find symbol
InputStream stream = KmlManager.class.getResourceAsStream("/log4
j_kmz.properties");
^
symbol: class KmlManager
location: class Testing
Testing.java:41: error: cannot find symbol
PropertyConfigurator.configure(properties);
^
symbol: variable PropertyConfigurator
location: class Testing
Testing.java:65: error: cannot find symbol
DeploymentInfo deploymentInfo = DeploymentInfo.createDep
loymentInfo("1 day since 2011-09-07 00:00:00", "3.400", "39.200");
^
symbol: class DeploymentInfo
location: class Testing
Testing.java:65: error: cannot find symbol
DeploymentInfo deploymentInfo = DeploymentInfo.createDep
loymentInfo("1 day since 2011-09-07 00:00:00", "3.400", "39.200");
^
symbol: variable DeploymentInfo
location: class Testing
Testing.java:66: error: cannot find symbol
AdditionalInfo additionalInfo = new AdditionalInfo(deplo
ymentInfo, null, null, false);
^
symbol: class AdditionalInfo
location: class Testing
Testing.java:66: error: cannot find symbol
AdditionalInfo additionalInfo = new AdditionalInfo(deplo
ymentInfo, null, null, false);
^
symbol: class AdditionalInfo
location: class Testing
Testing.java:67: error: cannot find symbol
KmlManager kmlManager = new KmlManager(NetcdfDataset.ope
nDataset(netCdfFileLocation), additionalInfo, kmlFileLocation);
^
symbol: class KmlManager
location: class Testing
Testing.java:67: error: cannot find symbol
KmlManager kmlManager = new KmlManager(NetcdfDataset.ope
nDataset(netCdfFileLocation), additionalInfo, kmlFileLocation);
^
symbol: class KmlManager
location: class Testing
Testing.java:67: error: cannot find symbol
KmlManager kmlManager = new KmlManager(NetcdfDataset.ope
nDataset(netCdfFileLocation), additionalInfo, kmlFileLocation);
^
symbol: variable NetcdfDataset
location: class Testing
Testing.java:69: error: cannot find symbol
} catch (KmlManagerException e) {
^
symbol: class KmlManagerException
location: class Testing
19 errors

C:\Users\LJH-PC\Downloads\NC2KML-master\NC2KML-master\test\netcdftokml\test>

@JuangaSocib
Copy link
Contributor

Dear Jung-Hang, we have discovered that the release/NC2KML.jar file wasn't up-to-date after the last update of our code. Now it's fixed. Also I suggest you don't forget to include the dependencies classpath parameter while using "javac -cp":
javac -cp "../../../lib/*;../../../release/*" Testing.java

Thank you very much for using our projects and for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants