I followed demo instructions on page http://www.achartengine.org/content/goodies.html
i successfully imported the demo project, but every chart give throws
a NoClassDefFoundError
at runtime, similar to this:
java.lang.NoClassDefFoundError:
org.achartengine.model.XYMultipleSeriesDataset
achartengine-1.0.0.jar is on build path, and it is reported under 'Referenced Libraries'. I guess this is a newbie problem, but I decided to report it since I just imported the demo project 'as is' and tried to run it on my phone.
Do I need other steps, not listed on 'goodies' page?
When you click Compile and Run, your code is checked against the sample input and sample output by running it against multiple test files that aren’t visible to you. Runtime errors may occur because of the following reasons: Read the problem statement again, understand it, and write code to solve all the possible scenarios.
All these errors are detected by the compiler and thus are known as compile-time errors. Below is an example to demonstrate Compile-Time Error: Run-Time Errors: Errors which occur during program execution (run-time) after successful compilation are called run-time errors.
When you click Compile and Run, your code is checked against the sample input and sample output by running it against multiple test files that aren’t visible to you. Runtime errors may occur because of the following reasons:
I found a good answer on google groups, tested it and it seems to be working:
The only thing that I have ever came across in this case is the export of the jar ... if that makes sense.
In Eclipse:
click ok then clean your project. (Project -> Clean...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With