Hello, please help me. I have leJOS NXT project in Eclipse and I want create jUnit test. When you start the project I get the error "Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/ClassLoader" Do you know what to do?
I did write some tests with jUnit for my project. However this will only work for the parts/classes of your program that don't use NXT specific library features (that use only features that are available in the standard java library) Here how I did it: - Create another (standard, not NXT!) Java-project in your workspace (I'm asuming you use eclipse ...) - Create the tests for your classes in this project! Remember: as soon as you use any nxt.* classes in the tested classes, it will fail!