NoClassDefFoundError: ConcurrentHashMap

Help
Anonymous
2012-07-25
2013-06-05
  • Anonymous - 2012-07-25

    Hi all,

    I am trying to maintain some old code that I wrote back in 2008 and import the current 1.0.3 ical4j version.

    At runtime it fails with:

    Exception in thread "main" java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/ConcurrentHashMap
        at net.fortuna.ical4j.util.CompatibilityHints.<clinit>(CompatibilityHints.java:80)
        at net.fortuna.ical4j.model.Iso8601.<init>(Iso8601.java:78)
        at net.fortuna.ical4j.model.Date.<init>(Date.java:128)
        at net.fortuna.ical4j.model.DateTime.<init>(DateTime.java:236)
        at jdiary.Main.main(Main.java:157)
    Caused by: java.lang.ClassNotFoundException: edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 5 more
    

    I can't remember how I built this before, but now I am using Eclipse.

    Can anyone help me understand what I need to do?

    Many thanks,
    - jon.

     
  • JonEK

    JonEK - 2012-07-25

    Hi all,
    sorry, I was being a bit thick! I have it now.
    I need to add the other external JARs to my build/run classpath.

    Thanks for reading this far,
    - jon.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks