File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Compile Errors: cannot resolve symbol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Compile Errors: cannot resolve symbol" Watch "Compile Errors: cannot resolve symbol" New topic
Author

Compile Errors: cannot resolve symbol

Dave Comeau
Greenhorn

Joined: Jun 14, 2002
Posts: 27
Hi,
I am trying to compile a java file that uses static methods of a jar file. I can't seem to get the java file to recognize that these are static methods of the jar file.
The jar is named FedExAPI.jar and is in /com/fedex/api/ relative to my java file. The java file imports com.fedex.api.*; which looks correct to me.
I've included the error i receive below.
Thanks in advance - Dave

Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Hi,
make sure you have set your classpath properly, and just a reminder, for jar files the classpath entry should include full path to the jar file, including the jar file name.
hope that helps


The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
Monty Ireland
Ranch Hand

Joined: Oct 03, 2000
Posts: 161
i agree...
one character off and java goes boom!


Multi Platform Database Developer & DBA on E.S.T.
Dave Comeau
Greenhorn

Joined: Jun 14, 2002
Posts: 27
That was it. Thanks for answering such an obvious question.
I was having trouble because the FedEx API was telling me to seperate multiple classpaths with a ; and I needed to use a :
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compile Errors: cannot resolve symbol
 
Similar Threads
error when testing...any help will be appreciated
Pass by ref- pgm err
parameter passing (very beginner)
Method Hash
Package oracle.sql does not exist