Hi, may be you need to check your jdom library i guess.
rgds b.l 2011/1/27 Rafał Laczek <rafal_lac...@wp.pl> > Hi Colleagues, > > > > I create RSS feed. When I execute the main class I receive following > exception: > > in thread "main" java.lang.NoClassDefFoundError: org/jdom/JDOMException > > at com.sun.syndication.io.SyndFeedOutput.<init>(SyndFeedOutput.java:44) > > at no.arrive.web.CreateRSSFeed.main(CreateRSSFeed.java:56) > > Caused by: java.lang.ClassNotFoundException: org.jdom.JDOMException > > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > > ... 2 more > > > > > > Line 56 is SyndFeedOutput output = new SyndFeedOutput(); //line 56 > > I send also my class. For the project I use Rome library. > > Can somebody advise how to resolve it. > > > > > > > > > > public class CreateRSSFeed { > > > > private static final DateFormat DATE_PARSER = new > SimpleDateFormat("yyyy-MM-dd"); > > > > > > public static void main(String[] args) { > > > > try{ > > System.out.println("Create RSS feed test"); > > String feedType ="rss=2.0"; > > String fileName = "feed.xml"; > > > > SyndFeed feed = new SyndFeedImpl(); > > feed.setFeedType(feedType); > > > > feed.setTitle("ABC"); > > feed.setLink("http://www.abc.com.html"); > > feed.setDescription("IT "); > > System.out.print("Feed title is: "+feed.getTitle()); > > > > List entries = new ArrayList(); > > SyndEntry entry; > > SyndContent description; > > > > entry = new SyndEntryImpl(); > > entry.setTitle("About ABC"); > > entry.setLink("http://www.abc.com/category.php?categoryID=3681"); > > entry.setPublishedDate(DATE_PARSER.parse("2011-01-10")); > > description = new SyndContentImpl(); > > description.setType("text/plain"); > > description.setValue("ABC is blablabla.."); > > entry.setDescription(description); > > System.out.print("Entry title is: "+entry.getTitle()); > > entries.add(entry); > > > > feed.setEntries(entries); > > > > Writer writer = new FileWriter(fileName); > > SyndFeedOutput output = new SyndFeedOutput(); //line 56 > > output.output(feed, writer); > > writer.close(); > > > > System.exit(0); > > > > }catch (Exception ex) { > > ex.printStackTrace(); > > } > > } > > > > } > > > > > > -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com> > For more options, visit this group at > > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en