To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 2591
2590  |  2592
Subject: 
Re: a problem ... need some help !
Newsgroups: 
lugnet.robotics.rcx
Date: 
Sat, 5 Feb 2005 20:14:31 GMT
Viewed: 
5448 times
  
hi,,,
thanks, i just defined JAVAC to where my javac is and its working but there is a
small problem that i have to put the java file im compiling in lejos\bin because
it doesn't work when i set the CLASSPATH !
i also defined JAVA env var to $jdk\bin\java so that the lejos command would
work.

In lugnet.robotics.rcx, John Hansen wrote:
On the off-chance you might be trying to use lejos with BricxCC here are a few
instructions that should get things working.

It has been a while since I tried to use lejos with a recent java SDK and it
turns out that the pre-built minimal lejos installer I wrote has a small problem
with the recent JDKs.  In order to get it to work a very simple change needs to
be made to the Java makefile template on the Preferences dialog, Compiler tab,
Java tab.  Add -target 1.1 to the line containing $(LEJOSC) as demonstrated
here:

$(LEJOSC) -target 1.1 $<

Also, you need to set the JDK path to be the root of the directory where your
JDK is installed. Mine looks like this:

C:\j2sdk1.4.2_06

With these two simple changes to the default configuration in BricxCC I can
compile the sample applications that I included in the minimal lejos installer.

If you want to execute lejosc or lejos directly from a cygwin prompt then you
need to set JAVAC=c:\j2sdk1.4.2_06/bin/javac.  If you look at the makefile
template you can see that it is doing exactly that.  Of course, if your JDK is
installed in a different directory then your value for JAVAC and the JDK path in
BricxCC will be different.

John Hansen



Message has 1 Reply:
  Re: a problem ... need some help !
 
(...) Although you may not be using BricxCC to compile your leJOS code I think it might be instructive to describe how BricxCC manages to compile leJOS code properly. The way BricxCC works with leJOS is to create a very simple makefile that launches (...) (20 years ago, 6-Feb-05, to lugnet.robotics.rcx)

Message is in Reply To:
  Re: a problem ... need some help !
 
On the off-chance you might be trying to use lejos with BricxCC here are a few instructions that should get things working. It has been a while since I tried to use lejos with a recent java SDK and it turns out that the pre-built minimal lejos (...) (20 years ago, 5-Feb-05, to lugnet.robotics.rcx)

4 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