Error Upload and Run

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

Error Upload and Run

Postby Shadowstep » Mon Mar 26, 2012 7:44 pm

hy, when I try to upload and run from netbeans to my nxt I get
Code: Select all
clean:
Deleting directory C:\Users\Pieter\Documents\NetBeansProjects\GIP\build
compile:
Created dir: C:\Users\Pieter\Documents\NetBeansProjects\GIP\build
Compiling 10 source files to C:\Users\Pieter\Documents\NetBeansProjects\GIP\build
link:
js.tinyvm.TinyVMException: Class org.lejos.example.HelloWorld (file org/lejos/example/HelloWorld.class) not found in CLASSPATH C:\Lejos\lib\nxt\classes.jar;C:\Users\Pieter\Documents\NetBeansProjects\GIP\build
   at js.tinyvm.ClassRecord.getClassRecord(ClassRecord.java:855)
   at js.tinyvm.Binary.processClasses(Binary.java:365)
   at js.tinyvm.Binary.createFromClosureOf(Binary.java:312)
   at js.tinyvm.TinyVMTool.link(TinyVMTool.java:98)
   at js.tinyvm.TinyVMTool.link(TinyVMTool.java:49)
   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(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at lejos.pc.tools.ToolStarter.startTool(ToolStarter.java:31)
   at lejos.pc.tools.NXJLink.main(NXJLink.java:28)
C:\Users\Pieter\Documents\NetBeansProjects\GIP\build.xml:53: Java returned: 1
BUILD FAILED (total time: 8 seconds)


I don't understrand what it means or what could cause this problem.
If you want to take a look at my project: here it is in a .rar http://www52.zippyshare.com/v/82417313/file.html


I really need help caus it is kinda urgent

thanx
Shadowstep
New User
 
Posts: 22
Joined: Sun Jan 15, 2012 9:24 pm

Re: Error Upload and Run

Postby gloomyandy » Mon Mar 26, 2012 8:43 pm

Sorry it is too hard to look at your code, the web site you posted pops up some sort of casino spam page and rar files are not the easiest files to extract from....

If you want help I think you need to spend a little more time explaining what it is you have done. It looks like you are using the HelloWorld example build file, but with your own project (since the HelloWorld example does not have 10 source files)... So take a step back and tell us more about your project, what version of leJOS you are using, what it is you are trying to do, what you have done so far, and why is this so urgent...

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3881
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Error Upload and Run

Postby skoehler » Mon Mar 26, 2012 8:58 pm

You really need to edit the build.properties file. Adjust the package and name of the main class to fit your needs.
Also consider switching to Eclipse.
skoehler
leJOS Team Member
 
Posts: 1387
Joined: Thu Oct 30, 2008 4:54 pm

Re: Error Upload and Run

Postby Shadowstep » Tue Mar 27, 2012 8:41 am

Ok but I'm going to stick to netbeans for now becaus it's for something for school that I have to hand in in a few weeks and I don't want to take the risk doing everything over. but ok let me explain it a bit more. I am trying to make a robot that can drive around in a room detects objects and then just uses behavior to respond to object detection. I also want to add bluetooth but that does not matter now. the problem that I have is. first of al I did not understand the error. second of all I don't know what files I should edit to make things upload propperly to my nxt. tonight I will post what version I have (I'm in school now) and I don't know really.anyway if you could provide me with some information on how to edit these files you are always welcome. I will start searching for myself and ask questions here if I don't understand something.

and sorry for my bad english.
Shadowstep
New User
 
Posts: 22
Joined: Sun Jan 15, 2012 9:24 pm

Re: Error Upload and Run

Postby skoehler » Tue Mar 27, 2012 9:14 am

Open build.properties with a text editor or in netbeans. It really just contains the package and the name of the main class. You need to adjust that to match your code.
skoehler
leJOS Team Member
 
Posts: 1387
Joined: Thu Oct 30, 2008 4:54 pm

Re: Error Upload and Run

Postby Shadowstep » Tue Mar 27, 2012 9:36 am

skoehler wrote:Open build.properties with a text editor or in netbeans. It really just contains the package and the name of the main class. You need to adjust that to match your code.


Ok thanx I did do that now. but I can only test it this evening. I will let you know if that fixed the problem. and thanx a lot for your help :D


kind regards Pieter
Shadowstep
New User
 
Posts: 22
Joined: Sun Jan 15, 2012 9:24 pm


Return to NXJ Software

Who is online

Users browsing this forum: Baidu [Spider] and 4 guests

more stuff