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.i.e 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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top