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 / 146
145  |  147
Subject: 
Re: Loading multiple java binaries using leJOS
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Wed, 3 Oct 2001 03:46:47 GMT
Viewed: 
2853 times
  
In lugnet.robotics.rcx.java, Roger Glassey writes:
From the  readme file :

To simply create a binary file containing the linked
program, use:

lejos -o MyProgram.bin MyProgram

You can download a previously linked program with:

lejosrun MyProgram.bin

You can also download multiple programs in one shot as
follows:

lejos Class1,Class2,...

The programs will be linked together, and will replace
any programs previously in the RCX. You can press Prgm
to select which program to run.

Just to clarify, for the most part, I already have the *.bin files for
contest entries.  To run them individually using "lejosrun prog.bin" works
fine.  But if 'lejosrun' is the tool to download programs, to me it would
make sense to use the same tool to download multiple programs.

But "lejosrun prog1.bin prog2.bin" doesn't work, nor do other obvious
variations. (Why 'run' is used to mean 'download' is question for another
time. :-)

Anyway, "lejos prog1.bin,prog2.bin,..." doesn't work because 'lejos' seems
to want source files, or something.  I don't have access to those in all cases.

What I want is something that lets me download multiple .bin files, either
as a batch, or preferably, individually, specifying which program position
they are to occupy.  Sort of like the equivalent of LegOS's "dll -p0
prog1.lx" where the '-p?' parameter says which position to download the
program to.

Is this possible?

--
  David Schilling



Message has 1 Reply:
  Re: Loading multiple java binaries using leJOS
 
(...) cases. (...) Hi David, AFAIK, lejos is a linker and needs a .class file. The MyProg.class file is the output of the compiler operating on MyProg.java, which must contain the main() method. lejos also needs a path to all the other .class files (...) (23 years ago, 3-Oct-01, to lugnet.robotics.rcx.java)

Message is in Reply To:
  Re: Loading multiple java binaries using leJOS
 
From the readme file : To simply create a binary file containing the linked program, use: lejos -o MyProgram.bin MyProgram You can download a previously linked program with: lejosrun MyProgram.bin You can also download multiple programs in one shot (...) (23 years ago, 3-Oct-01, to lugnet.robotics.rcx.java)

5 Messages in This Thread:


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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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