Post your NXJ projects, project ideas, etc here!
Moderators: roger, 99jonathan, imaqine
by newtonxt » Wed Nov 16, 2011 7:26 pm
I am running BTReceive code in samples folder (when you install Lejos).It runs fine. And my nxt screen shows waiting.
When I run BTsend after that (the example code in pcsamples) it gives the following error.
java.lang.NoClassDefFoundError: BTSend
Caused by: java.lang.ClassNotFoundException: BTSend
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: BTSend. Program will exit.
Exception in thread "main" C:\Users\XYZ\leJOSNXJProjects\pcsamples\nbproject\ide-file-targets.xml:25: Java returned: 1
BUILD FAILED (total time: 0 seconds)
I am new to this and I am not able to understand the error..
I am not changing anything in the code. Just using the sample code provided when you download lejos.
I would appreciate if someone could help.
-
newtonxt
- New User
-
- Posts: 3
- Joined: Wed Nov 16, 2011 7:19 pm
by gloomyandy » Wed Nov 16, 2011 8:53 pm
How are you compiling and running BTSend? What version of leJOS are you using?
Andy
-

gloomyandy
- leJOS Team Member
-
- Posts: 3004
- Joined: Fri Sep 28, 2007 2:06 pm
- Location: UK
by newtonxt » Thu Nov 17, 2011 9:50 pm
Hi Andy,
Thank you for your reply. I figured out the problem. I was not building the code before running it. After that I had a problem saying snapshot folder cannot be found. I solved that problem by editing nxj.home in build.properties "nxj.home=../snapshot" change it to "nxj.home=${env.NXJ_HOME}". It worked fine after that.
Thanks again.
-
newtonxt
- New User
-
- Posts: 3
- Joined: Wed Nov 16, 2011 7:19 pm
by fCassie » Wed Mar 28, 2012 9:31 am
"I solved that problem by editing nxj.home in build.properties "nxj.home=../snapshot" change it to "nxj.home=${env.NXJ_HOME}". It worked fine after that." - could you tell please we can solve this problem only by editing nxj..? Or is 't possible to do something else?
______________________
how to convert mkv to avi
-
fCassie
- New User
-
- Posts: 1
- Joined: Wed Mar 28, 2012 9:25 am
Return to NXJ Projects
Who is online
Users browsing this forum: No registered users and 1 guest