programing in the command prompt

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

Moderators: roger, imaqine, 99jonathan

nat1
Novice
Posts: 79
Joined: Mon Sep 10, 2007 1:21 am
Location: n/a
Contact:

programing in the command prompt

Postby nat1 » Mon Oct 08, 2007 2:33 pm

hi

I'm working on trying to program in java but I cant get my ide working so I was hoping somone could tell me how to programm in the command prompt. :cry: :cry:
Thanks!

Nat

lawrie
leJOS Team Member
Posts: 955
Joined: Mon Feb 05, 2007 1:27 pm

Postby lawrie » Fri Oct 12, 2007 7:31 pm

You can produce your Java program with Eclipse or a text editor.

Start a cmd window (e.g. Start>Run> cmd on wIndows XP), and make sure you have NXJ_HOME set and your PATH includes the Java JDK bin directory and lejos_nxj\bin - see the README..html file.

cd to the directory containing your Java source.

Then compile you program with nxjc, e.g:

Code: Select all

nxjc Test.java


and link and download it with nxj, e.g:

Code: Select all

nxj Test

nat1
Novice
Posts: 79
Joined: Mon Sep 10, 2007 1:21 am
Location: n/a
Contact:

Postby nat1 » Sat Oct 13, 2007 6:35 pm

hi,

thanks! is the java source the JDK I'm assuming it is but thanks a lot. and one other thing could you guys work on a eclipse plug in if so that would be great!!! :D thanks!!
Thanks!



Nat

lawrie
leJOS Team Member
Posts: 955
Joined: Mon Feb 05, 2007 1:27 pm

Postby lawrie » Sat Oct 13, 2007 8:50 pm

By Java source, I meant your Java program.

There is an Eclipse plugin in the SVN repository now. The third version of it (0.3) is currently being tested. It will be in the next release of leJOS.

99jonathan
Moderator
Posts: 122
Joined: Thu Mar 01, 2007 5:30 am

Postby 99jonathan » Sat Oct 13, 2007 10:37 pm

Until the new plugin is available, you can just use this guide to set up eclipse:

http://legolab.daimi.au.dk/DigitalContr ... guide.html

it works really well

nat1
Novice
Posts: 79
Joined: Mon Sep 10, 2007 1:21 am
Location: n/a
Contact:

Postby nat1 » Mon Oct 15, 2007 12:29 am

hi

thanks sooooooo much!!!!! :lol: :lol: :lol: can you tell me geuss on wen the nex releaseis going to be?
Thanks!



Nat

lawrie
leJOS Team Member
Posts: 955
Joined: Mon Feb 05, 2007 1:27 pm

Postby lawrie » Mon Oct 15, 2007 8:44 pm

You can use the plugin now - see the "Lejos Eclipse plugin" post.

We have not yet decided on when to do a new release. It depends on what new developments get finished in the next few weeks.

nat1
Novice
Posts: 79
Joined: Mon Sep 10, 2007 1:21 am
Location: n/a
Contact:

Postby nat1 » Mon Oct 15, 2007 11:52 pm

hi

is the plugin suposed to create a compiler and download tool or not I got it installed and al it gave me was a tool for downloading the firmware
Thanks!



Nat


Return to “NXJ Software”

Who is online

Users browsing this forum: Baidu [Spider], Yahoo [Bot] and 1 guest