Roman rss reader?

I am trying to read rss. I copied the jar file to the libs folder and I added the jar file to the eclipse project as a library. In order and export, I checked my jar file.

Now I'm trying to use the rss reader provided by rome

import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;

URL url  = new URL("http://myUrlGoesHere");
XmlReader reader = new XmlReader(url);      
SyndFeed feed = new SyndFeedInput().build(reader);

The following error appears on the last line: The type org.jdom.Document cannot be resolved. This indirectly refers to the required .class file

What does it mean? What is the solution? * Error importing *

+5
source share
2 answers

In addition to copying the jar Rome file to the libs folder, you also need to add the JDOM library (jar) to your class path.

, , , - JDOM. , - .

+7

, jdom-1.1.3.jar http://www.jdom.org/dist/binary/archive/. zip jdom-1.1.3\jdom\build.

| | Java | | JAR.

+8

All Articles