JCreator Configuration for LeJOS
In the CSLab at Graceland University
The CSLab workstations have the current jdk for Java, the JCreator IDE,
and the LegoMindstorms software for LeJOS programming (a Java-like language
to program the robots). However, in order to use JCreator with LeJOS
a user must configure JCreator on any workstation that he/she has not yet
do so (or after the machine has been re-ghosted). Here are the instructions:
- Click the Configure menu from the menubar
- Click Options from the drop-down menu
- From the left-hand menus, click Tools
- Click New and select Program
from the drop-down menu
- Navigate to C:\Program Files\Java\jdk1.5.0_07\bin
- Select the javac.exe file and then repeat steps 4 and 5 for
java.exe in the same directory
- Click New and select Program
from the drop-down menu
- Navigate to C:\lejos\bin
- Select the lejosc.exe file and then repeat
steps 4 and 8 for lejos.exe and
lejosfirmdl.exe
- Once the tools have been created, expand the Tools
menu in the left-hand menus
- Select the individual tools and match the options to the table below
(for the arguments and initial directory
fields, use the arrow button to the right of the field)
Tool |
Arguments |
Initial Directory |
Save all first |
Capture output |
javac |
$[FileName] |
$[FileDir] |
X |
X |
java |
$[CurClass] |
$[FileDir] |
|
|
lejosc |
$[Filename] -source 1.2 |
$[FileDir] |
X |
X |
lejos |
$[CurClass] |
$[FileDir] |
|
|
lejosfirmdl |
type -f |
$[CurDir] |
|
|
- Click Ok and the tools should be available in the
Tools menu on the menubar