yannrichet / jmathplot

Java interactive 2D and 3D plots (no OpenGL)
BSD 2-Clause "Simplified" License
157 stars 46 forks source link

This library worked just on Eclips or not ? #40

Open ZarchiMohammad opened 6 years ago

ZarchiMohammad commented 6 years ago

I have a problem , i working with intellijIdea and get below error : Exception in thread "main" java.lang.NoClassDefFoundError: org/math/io/StringPrintable at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.math.plot.canvas.PlotCanvas.(PlotCanvas.java:491) at org.math.plot.canvas.Plot2DCanvas.(Plot2DCanvas.java:25) at org.math.plot.Plot2DPanel.(Plot2DPanel.java:31) at FFT.main(FFT.java:110) Caused by: java.lang.ClassNotFoundException: org.math.io.StringPrintable at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

yannrichet commented 6 years ago

You probably need to add jmathio.jar dependency explicitely in your classpath, also.

Le dim. 29 juil. 2018 23:58, enghelab notifications@github.com a écrit :

I have a problem , i working with intellijIdea and get below error : Exception in thread "main" java.lang.NoClassDefFoundError: org/math/io/StringPrintable at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.math.plot.canvas.PlotCanvas.(PlotCanvas.java:491) at org.math.plot.canvas.Plot2DCanvas.(Plot2DCanvas.java:25) at org.math.plot.Plot2DPanel.(Plot2DPanel.java:31) at FFT.main(FFT.java:110) Caused by: java.lang.ClassNotFoundException: org.math.io.StringPrintable at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yannrichet/jmathplot/issues/40, or mute the thread https://github.com/notifications/unsubscribe-auth/ABwZbt6cRfJP_NNwva-KhS5QFHXBuf1Pks5uLjAFgaJpZM4VllSe .

giuseppeCruised commented 1 year ago

Had the same issue and after adding jmathio.jar dependency i got: Exception in thread "main" java.lang.NullPointerException at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:217) at org.math.plot.components.PlotToolBar.(PlotToolBar.java:61) at org.math.plot.PlotPanel.addPlotToolBar(PlotPanel.java:149) at org.math.plot.PlotPanel.(PlotPanel.java:59) at org.math.plot.PlotPanel.(PlotPanel.java:67) at org.math.plot.Plot2DPanel.(Plot2DPanel.java:31) at main.main(main.java:19)

I think i will just use a different library...