To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.javaOpen lugnet.robotics.rcx.java in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / Java / 14
13  |  15
Subject: 
Re: getting started with java and rcx
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Fri, 11 Aug 2000 17:22:22 GMT
Viewed: 
1838 times
  
In lugnet.robotics.rcx.java, Ben Erwin writes:
Hi.  since i'm supposed to be learning java right now at my job, and i also
like the rcx, i thought that a good way to learn would be to try and get some
java programs to run some of my robots.  however the links and emails in this
discussion thread leave a little too much to the imagination.  exactly how • many
current java/rcx projects are there?  3?  what is their status?  i've
downloaded RCXLoader and TinyVM... added all the right things to my classpath,
browsed some of the docs, etc.  What next? :) I'm on NT 4 - and I've enabled • my
serial port through the thinkpad configuration, so im rarin' to go (i'm just
not home yet, so no RCX with me).  I guess the first thing that I want to do • is
do a simple download test.  Anyway, any helpful hints, suggestions, updates,
recommendations, example programs, etc. please throw them this-a-way (just • keep
in mind that i'm new to java).

In TinyVM Unix/CygWin edition, you might want to
run the examples, and make changes to them. Right
after you unzip the distribution, you can
go to the installation directory and run:

make (Completes installation)
export RCXTTY=/dev/ttyS0 (Or assign the right COM port for you)
export PATH=$PATH:$PWD/bin
tvmfirmdl (Downloads firmware)
cd examples/hello
export CLASSPATH=. (Indicates where class files are)
tvmc HelloRCX.java (Compiles the Java program into HelloRCX.class)
tvmld HelloRCX -d (Links class files and downloads program)

In a normal Java environment you'd do the following (but it
won't work with this particular program, clearly):

export CLASSPATH=.
javac HelloRCX.java
java HelloRCX

I'd suggest picking up a book on Java for beginners.
The Java Tutorial by Sun is usually recommended in
these cases, but to be honest I haven't read it myself.

Regards,
--Jose

P.S. Are you the same Ben Erwin with whom I've exchanged
     a couple of emails recently?



Message is in Reply To:
  getting started with java and rcx
 
Hi. since i'm supposed to be learning java right now at my job, and i also like the rcx, i thought that a good way to learn would be to try and get some java programs to run some of my robots. however the links and emails in this discussion thread (...) (24 years ago, 9-Aug-00, to lugnet.robotics.rcx.java)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR