简体   繁体   中英

feed reader in primefaces

below is the code for feed reader of primefaces which is throwing an error which says
java.lang.NoClassDefFoundError: com/sun/syndication/io/XmlReader

<h:body>
    <p:feedReader size="20" value="http://rss.news.yahoo.com/rss/sports" var="feed">  
<h:outputText value="#{feed.title}" style="font-weight: bold"/>  
<br />  
<h:outputText value="#{feed.description.value}" escape="false"/>  
<p:separator />  


i searched for the same n found that some ROME library has to be included in the classpath. i downloaded the rome jar file n included it in my project but still it gives the same error what should i do?

Did u add jdom jar? If not add.Als try changing the version of the rome jar.ie try 0.9.

You can include the library using run time tool or jdk tool

using runtime tool

java -cp Your class_List

using jdk tools

ex: C:> java/jdb/javac/javah -classpath C:\\java\\MyClasses;C:\\java\\OtherClasses

or you can set CLASSPATH env variable

ex:set CLASSPATH=path1;path2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM