Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem compiling java file

Status
Not open for further replies.

javer

Technical User
May 14, 2004
3
NE
Hello Gentle People,
Once more I need some help on a problem I have been trying to crack for two weeks now.
I am trying to compile two java file which have references to each other. The file was compiling before. I modfied both files' names and accordingly modified the same names referencing the files in the file texts. Since those modifications, both the original files and the modifications do not compile, giving the error below.
The owner of the original files is able to compile the copies of his files modified by me and sent to him by email (to US, I am in Africa).
The error message below comes from one of his original files:
[Mumba@localhost classes]$ javac -classpath /usr/local/tomcat/common/lib/servlet.jar ./NcepMapDriver.java
./NcepMapDriver.java:32: cannot resolve symbol
symbol : class NcepMapGenerator
location: class NcepMapDriver
NcepMapGenerator nmg = new NcepMapGenerator();
^
./NcepMapDriver.java:32: cannot resolve symbol
symbol : class NcepMapGenerator
location: class NcepMapDriver
NcepMapGenerator nmg = new NcepMapGenerator();
^
2 errors

Any assistance?
 
Try this :

Code:
javac -classpath /usr/local/tomcat/common/lib/servlet.jar:. ./NcepMapDriver.java

or even better, this :

Code:
export CLASSPATH=$CLASSPATH:/usr/local/tomcat/common/lib/servlet.jar:. 

cd yourDirWhereYourCodeIs

javac NcepMapDriver.java
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top