I’m trying to import, and my statement looks like this:
import C.Users.pro-services.Documents.JAVA.libs.feed.synd.SyndFeed;
The compiler throws an error b/c of the hyphen in pro-services. Is there an easy fix, or a deeper issue here(re: my understanding of import statements!)?
Thanks
Oh my God, please tell me you’re not referring to file’s absolute path!
In Java, there is a thing called classpath which the Virtual Machine uses to locate classes.
Then, once your class is in the classpath (either in a jar file or inside your application), you can import it to your classes and use it.
The class you’re trying to import seems to be com.sun.syndication.feed.synd.SyndFeed
which you would import like:
That’s considering you have it in your class-path. IF you don’t, get the jar and put it in the classpath.