[Question]How to compile

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

Moderators: roger, imaqine, 99jonathan

guilhermesupe
New User
Posts: 2
Joined: Mon Oct 17, 2011 1:44 am

[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 .

skoehler
leJOS Team Member
Posts: 1460
Joined: Thu Oct 30, 2008 4:54 pm

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.

guilhermesupe
New User
Posts: 2
Joined: Mon Oct 17, 2011 1:44 am

Re: [Question]How to compile

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

thank you very much!


Return to “NXJ Software”

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests