Hi all,
Does Lejos allow the usage of external packages. I am getting a link error while trying to use the package. Any help or insight would be greatly appreciated.
Thank you
Moderators: roger, 99jonathan, imaqine
Linking ...
js.tinyvm.TinyVMException: Class java.io.FileReader (file java/io/FileReader.class) not found in CLASSPATH C:\\Program Files\\leJOS NXJ\\lib\\nxt\\classes.jar;C:\\Users\\msafin\\workspace\\RoboFLC\\bin;C:\\Users\\msafin\\workspace\\RoboFLC\\lib\\jFuzzyLogic_v2.1.jar
at js.tinyvm.ClassRecord.getClassRecord(ClassRecord.java:855)
at js.tinyvm.ClassRecord.storeReferredClasses(ClassRecord.java:394)
at js.tinyvm.Binary.processClasses(Binary.java:381)
at js.tinyvm.Binary.createFromClosureOf(Binary.java:309)
at js.tinyvm.TinyVMTool.link(TinyVMTool.java:97)
at js.tinyvm.TinyVMTool.link(TinyVMTool.java:48)
at lejos.pc.tools.NXJLink.start(NXJLink.java:134)
at lejos.pc.tools.NXJLink.run(NXJLink.java:101)
at lejos.pc.tools.NXJLink.start(NXJLink.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at lejos.pc.tools.ToolStarter.startTool(ToolStarter.java:31)
at lejos.pc.tools.NXJLink.main(NXJLink.java:28)
Linking the file failed with exit status 1skoehler wrote:What's the output of the linker?
In general, on the NXT, only a subset of the Java API is available. The jFuzzaLogic package is almost certainly using some APIs that are part of a normal full grown JDK, but not available on the NXT.
skoehler wrote:Well, the jfuzzylogic package seems to use the FileReader class, which is not available in leJOS.
You can take the source of the jfuzzylogic package, and try to remove all references to non-existent API in order to compile it for leJOS.
msafin wrote:skoehler wrote:Well, the jfuzzylogic package seems to use the FileReader class, which is not available in leJOS.
You can take the source of the jfuzzylogic package, and try to remove all references to non-existent API in order to compile it for leJOS.
If I use Bluetooth to remotely run the code on my PC. Would it work then.
Users browsing this forum: No registered users and 3 guests