java.lang.NoClassDefFoundError

org/jfree/data/xy/XYDataset


Samebug tips6

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

I had to build one fat jar that will include all dependencies from the other jars that i wanted to use.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web19107

Solution icon of oraclecommunity
via Oracle Community by 3004, 1 year ago
org/jfree/data/xy/XYDataset

Solution icon of stackoverflow
org/jfree/data/xy/XYDataset

Solution icon of web
via oracle.com by Unknown author, 1 year ago
org/jfree/data/xy/XYDataset

Solution icon of web
org/jfree/data/xy/XYDataset

Solution icon of web
org/jfree/data/xy/XYDataset

Solution icon of web
via java-forums.org by Unknown author, 1 year ago
org/jfree/data/xy/XYDataset

Solution icon of stackoverflow
org/jfree/data/xy/XYDataItem

Solution icon of stackoverflow
via Stack Overflow by Yisroel Shapiro
, 1 year ago
org/jfree/data/DefaultPieDataset

Solution icon of oraclecommunity
via Oracle Community by 843834, 1 year ago
org/jfree/data/DefaultMeterDataset

Stack trace

  • java.lang.NoClassDefFoundError: org/jfree/data/xy/XYDataset at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Caused by: java.lang.ClassNotFoundException: org.jfree.data.xy.XYDataset at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 7 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
2 times, 4 months ago
Once, 7 months ago
2 times, 8 months ago
1552 more bugmates