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 / 275
274  |  276
Subject: 
Aaargh...I need some help
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Fri, 19 Sep 2003 12:22:01 GMT
Viewed: 
5415 times
  
Hi,

Can anyone lend a desperate soul a helping hand? Here's my problem:

I've followed the installation directions for windows as outlined in
lejos.sourceforge.net

For your convenience, I've included the instructions here:

Installation of the leJOS environment

1. After you have downloaded the leJOS environment zip file, unzip it to an
arbitrary directory - if you haven't a zip utility, you might try for example
7-Zip, which is available for free.

2. Add the SDK's bin directory to your PATH environment variable.

3.  Set the LEJOS_HOME evironment variable to the directory you installed lejos
into:
set LEJOS_HOME=< your lejos directory >

4.  Add leJOS's bin directory to your PATH environment variable:
set PATH=%PATH%;%LEJOS_HOME%\bin

5.  Add the leJOS classes to your CLASSPATH environment variable:
set
CLASSPATH=%CLASSPATH%;.;%LEJOS_HOME%/lib/classes.jar;%LEJOS_HOME%/lib/pcrcxcomm.jar

6.  Set the RCXTTY environment variable to your 'tower' device:
set RCXTTY=COM1 or set RCXTTY=USB.

Alrite, I've done all that. Next, I downloaded the firmware into the RCX. No
problems there.

Then I tried to run the helloworld program. Here are the instructions for it as
well.

1.  Open a command shell and change to the examples\hworld directory of your
leJOS installation

2. Compile it using lejosjc.bat instead of javac:
lejosjc.bat HelloWorld.java

3.  Create a binary file containing the linked program with lejoslink.bat -o
HelloWorld.bin HelloWorld


When I tried the command in step 3 above, I got an error message:

Fatal error: %CLASSPATH% is not a directory.

My explanation for this is that the CLASSPATH variable does not exist in the
first place. My assumption was proven correct when I restarted windows and found
that indeed, there was no CLASSPATH variable.

Ok, what I then did was reset CLASSPATH as:

set CLASSPATH=LEJOS_HOME/lib/classes.jar;LEJOS_HOME/lib/pcrcxcomm.jar

Why I retried the command in step 3 above, I got another error message:

Can't open zip/jar file: LEJOS_HOME/lib/classes.jar
Can't open zip/jar file: LEJOS_HOME/lib/pcrcxcomm.jar

Right, so there's my problem. Any advice would be a big help. Thanks!!

Tyler



Message has 2 Replies:
  Re: Aaargh...I need some help
 
(...) I would put the following two lines into a batch file which you execute prior to trying to compile and download your lejos programs. set LEJOS_HOME=<some path to lejos directory without a trailing slash> set CLASSPATH=%LEJOS_HOM...cxcomm.jar (...) (21 years ago, 19-Sep-03, to lugnet.robotics.rcx.java)
  Re: Aaargh...I need some help
 
(...) 1. Make sure LEJOS_HOME is set properly: echo %LEJOS_HOME% 2. Make sure there is a file lib\classes.jar in your LEJOS_HOME directory: dir %LEJOS_HOME%\lib\classes.jar 3. Try including the percentage signs and using backslashes: set (...) (21 years ago, 19-Sep-03, 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