Stumped - Can't find lejos.bat

This is where you talk about the RCX software itself, installation issues, and programming talk.

Moderator: roger

Stumped - Can't find lejos.bat

Postby 3dp » Sun May 02, 2010 1:03 am

I've checked & double checked my environment variables.

Java is installed. Firmware appears to have uploaded. However, when I try to run

Code: Select all
lejos.bat DistributionSmokeTest


from the tutorial, I get the following:
'lejos.bat' is not recognized as an internal or external command, operable program or batch file.


I've done search for lejos.bat and I can't find it anywhere.

Am I missing something?

Using Java 1.6 (seems to compile OK)...
3dp
New User
 
Posts: 3
Joined: Sun May 02, 2010 12:59 am

Postby Walt White » Thu May 13, 2010 7:01 pm

Hi 3dp,

It's been a few years since I did any of this and I am just starting to get back into it again, so I am experiencing a lot of typical beginner stuff myself.
The error message you got is typical of a Windows setup where the file lejos.bat is in neither your "path" nor the current folder where you executed that command.
If lejos.bat is physically located in c:\SomeFolder then you need to either add "c:\SomeFolder" to your path environment variable, or you need to be in c:\SomeFolder when you execute the command lejos.bat.
Hope this helps. I'm at work now, during lunch break, so I don't have access to my home computer. Otherwise, I would offer my own specifics as to where I have the file lejos.bat and what is in my path.

Walt
Walt White
Novice
 
Posts: 43
Joined: Sun Aug 06, 2006 11:57 pm
Location: California Central Valley

Still no lejos.bat

Postby 3dp » Sat Jun 05, 2010 9:04 pm

Following the tutorial here: http://lejos.sourceforge.net/rcx/tutori ... win32.html

I get here:

Code: Select all
lejos.bat DistributionSmokeTest


As I said in my original post, there is no lejos.bat. So, what to do? I tried using lejoslink.bat, with weird errors and no success.

Anybody have any experience getting a complied file to link and download? Am I missing something?

If I use

Code: Select all
lejos DistributionSmokeTest


I get the following error:
Unable to execute java. Return status of exec is -1.
Make sure Java is in the Path, or define JAVA.


Thoughts? Anyone? Help?
3dp
New User
 
Posts: 3
Joined: Sun May 02, 2010 12:59 am

Postby mclean » Sun Jun 06, 2010 1:39 am

The solution is to use leJOS 3. LeJOS 2 does not contain lejos.bat
mclean
New User
 
Posts: 1
Joined: Sun Jun 06, 2010 1:37 am


Return to RCX Software

Who is online

Users browsing this forum: No registered users and 0 guests

more stuff