File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compile Errors: cannot resolve symbol

 
Dave Comeau
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1211
IntelliJ IDE Mac
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Monty Ireland
Ranch Hand
Posts: 161
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i agree...
one character off and java goes boom!
 
Dave Comeau
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 :
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic