File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Compile Errors: cannot resolve symbol" Watch "Compile Errors: cannot resolve symbol" New topic

Compile Errors: cannot resolve symbol

Dave Comeau

Joined: Jun 14, 2002
Posts: 27
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*; 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

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
Sonny Gill LinkedIn
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

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:
subject: Compile Errors: cannot resolve symbol
It's not a secret anymore!