Hi,
First of all, I resent the text without the HTML formating from the
webmail I used last time.
My son wanted to program his RCX in java, he switched to Lejos and used
LDT for Eclipse.... Unfortunately, he claimed that it did not work and
asked me to solve the problems...
Our Plateform is Windows XP, Java 1.5 and Eclipse 3.1
The application he wants to write implies a communication between the
tower and the RCX Brick. His tower is an old serial tower on COM1.
- First problem : on the RCX side, ldt did not succeed in linking...
Solve by : Retreiving the LDT from the CVS repository, (all on the 1.2.0
tag and org.lejos itself on 3.0.0)... I modified the linking phase by
adding the search for the rcxcomm.jar... and now it works..
- Second problem : on the PC side, lot of tower write errors and RCXTTY
did not help.
Having looked at the sourcecode for org.lejos, I did not any way to have
the prcxcomm looked to the COM1 even putting new RCXPORT("COM1") does
not work.
Solve by : retreiving the lejos 2.1.0 from the CVS site, and putting the
env variable RCXTTY to COM1.
So our state is :
for the RCX side, we are using the modified LDT with lejos 3.0.0
for the PC side, we are using the lejos 2.1.0
Does anybody know of a better solution ?
- JC
PS : This is the modification I made in EclipseToolsetFacade
Index: EclipseToolsetFacade.java
===================================================================
RCS file:
/cvsroot/lejos/org.lejos.ldt.core/src/java/org/lejos/tools/eclipse/plugin/EclipseToolsetFacade.java,v
retrieving revision 1.12
diff -u -r1.12 EclipseToolsetFacade.java
--- EclipseToolsetFacade.java 16 Jul 2004 08:39:20 -0000 1.12
+++ EclipseToolsetFacade.java 8 Jun 2006 17:13:22 -0000
@@ -367,6 +367,8 @@
IPath classesJar = EclipseUtilities.findLejosLib("classes.jar");
String classpath = classesJar.toOSString() + File.pathSeparator
+ classdir;
+ IPath rcxcommJar = EclipseUtilities.findLejosLib("rcxcomm.jar");
+ classpath = rcxcommJar.toOSString() + File.pathSeparator +
classpath;
toolset.link(platform, classpath, classname, false, stream, true);
}
catch (IOException e)
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion