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 / 2590
2589  |  2591
Subject: 
Re: a problem ... need some help !
Newsgroups: 
lugnet.robotics.rcx
Date: 
Sat, 5 Feb 2005 06:09:57 GMT
Viewed: 
5130 times
  
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 !
 
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 (...) (20 years ago, 5-Feb-05, to lugnet.robotics.rcx)

Message is in Reply To:
  a problem ... need some help !
 
hi everyone, im just starting to work with lego RIS2.0 and Lejos, but i have a problem with the lejos setup i did all the instructions and when i tried to compile a java file using the lejosc command i got this reply: Unable to execute javac. Return (...) (20 years ago, 4-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