leJOS

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
colin
Posts: 5
Joined: Thu Jan 26, 2006 7:25 am

leJOS

Post by colin »

I want to use TextPad with leJOS [url]http://lejos.sourceforge.net/[/url] which is JAVA that runs on Lego Mindstorms.
How do I make TextPad use the leJOS compiler rather than javac?
Regards
Colin
colin
Posts: 5
Joined: Thu Jan 26, 2006 7:25 am

Can I change Registry?

Post by colin »

I looked around for where TextPad might store Compiler, Run and Applet names and found them in the Registry.
They are at HKEY_CURRENT_USER/Software/Helios/TextPad 4/Tools/1,2 and 3.
Would it be alright to change them to the leJOS compiler? I can't find anyway within TextPad to change them as they are greyed out.
Regards
Colin
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

You can always manually add tools for use by TextPad rather than muck about in the registry (and decrease your risk of borking Windows). Configure, Preferences, Tools, Add -> Program. The help file ought to help explain the options.
I choose to fight with a sack of angry cats.
colin
Posts: 5
Joined: Thu Jan 26, 2006 7:25 am

Got it

Post by colin »

Thanks for your reply. I have figured out how to add the commands that I need.
Regards
Colin
colin
Posts: 5
Joined: Thu Jan 26, 2006 7:25 am

Concatenation

Post by colin »

LeJOS needs the following command to link:- lejoslink.bat -o HelloWorld.bin HelloWorld
I have put lejoslink.bat in the Command box and -o $BaseName&.bin $Basename in the Parameters box but it doesn't work. How do I concatenate $BaseName with .bin ?
Regards
Colin
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Er... $BaseName.bin .
colin
Posts: 5
Joined: Thu Jan 26, 2006 7:25 am

Obvious

Post by colin »

I hadn't tried the obvious
Thanks
Regards
Colin
Post Reply