[Question]How to compile

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

Moderators: 99jonathan, roger, imaqine

[Question]How to compile

Postby guilhermesupe » Mon Oct 17, 2011 2:30 am

Hello everybody! i have a little question, how can i link more than one .class files, that one that depends of the other, i have one class Robogator_AI and other class named Metodos, the metodos class has some methods that object in the Robogator_AI class( the main class) use, how can i link then together in console? ( iam not using IDE)

like nxjlink Robogator_AI Metodos -o Robot_core something like this?

thanks for the intention .
guilhermesupe
New User
 
Posts: 2
Joined: Mon Oct 17, 2011 1:44 am

Re: [Question]How to compile

Postby skoehler » Mon Oct 17, 2011 6:51 am

nxjlink -cp <directory with class files> -o <outputfile> <full qualified class name of main class>

The linker will automatically include all dependencies of the main class in the outputfile.
skoehler
leJOS Team Member
 
Posts: 1406
Joined: Thu Oct 30, 2008 4:54 pm

Re: [Question]How to compile

Postby guilhermesupe » Mon Oct 17, 2011 1:36 pm

thank you very much!
guilhermesupe
New User
 
Posts: 2
Joined: Mon Oct 17, 2011 1:44 am


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff