Created
February 25, 2011 13:08
-
-
Save skihero/843760 to your computer and use it in GitHub Desktop.
This is amazing, just doesn't understand where to find the jar files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server]# ls | |
AdminPortalServiceImpl.java commons-configuration-1.6.jar commons-logging-1.1.1.jar ConfReader.java README User.java | |
commons-collections-3.2.jar commons-lang-2.6.jar ConfReader.class global.xml UCService.java UserService.java | |
server]# pwd | |
/root/workspace/Conf_Reader/server | |
server]# javac ConfReader.java -cp commons-configuration-1.6.jar -cp commons-collections-3.2.jar -cp commons-lang-2.6.jar -cp commons-logging-1.1.1.jar | |
ConfReader.java:12: package org.apache.commons.configuration does not exist | |
import org.apache.commons.configuration.*; | |
^ | |
ConfReader.java:13: package org.apache.commons.lang.exception does not exist | |
import org.apache.commons.lang.exception.*; | |
^ | |
ConfReader.java:14: package org.apache.commons.configuration does not exist | |
import org.apache.commons.configuration.ConfigurationException; | |
^ | |
ConfReader.java:82: cannot find symbol | |
symbol : class XMLConfiguration | |
location: class ConfReader | |
private XMLConfiguration readConfigFile() throws ConfigurationException{ | |
^ | |
ConfReader.java:82: cannot find symbol | |
symbol : class ConfigurationException | |
location: class ConfReader | |
private XMLConfiguration readConfigFile() throws ConfigurationException{ | |
^ | |
ConfReader.java:83: cannot find symbol | |
symbol : class XMLConfiguration | |
location: class ConfReader | |
XMLConfiguration config = new XMLConfiguration(this.filename); | |
^ | |
ConfReader.java:83: cannot find symbol | |
symbol : class XMLConfiguration | |
location: class ConfReader | |
XMLConfiguration config = new XMLConfiguration(this.filename); | |
^ | |
ConfReader.java:95: cannot find symbol | |
symbol : class Test_XML | |
location: class ConfReader | |
Test_XML tex = new Test_XML(); | |
^ | |
ConfReader.java:95: cannot find symbol | |
symbol : class Test_XML | |
location: class ConfReader | |
Test_XML tex = new Test_XML(); | |
^ | |
9 errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed it by using -classpath somejar(s):.