Could you post your custom class and how you call it?
(use code tags to keep indentation...)
To save a class/code library, you save it as a *.java file. The IDE should compile it for you.
To reference methods in the code library, you use: <ClassName>.<methodName>
For example, let's say you have a class Navigation, and in that class a method driveForward(). To call this function, use:
- Code: Select all
Navigation.driveForward();
This is going off of my knowledge of Java, so someone more familiar with leJOS may need to correct me if there's a leJOS-specific change...
//Andrew