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 / 54
53  |  55
Subject: 
leJOS: anyone building under Cygwin? problem! (very long, not wrapped)
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Fri, 16 Mar 2001 18:50:02 GMT
Viewed: 
2566 times
  
I'm trying to run lejosc under Cygwin, and I'm running into an
unusual problem.

Background: I am actually attempting to fix up a system so that I can
use Jakarta-Ant <http://jakarta.apache.org/ant/> to manage the build
process.  It's a long story, but we use Ant here at work and I wanted
to be able to just plug my lejos project source tree into my work
source tree and use the same building mechanisms.  So I created a
Task, and a CompilerAdapter, etc. and now I am able to launch the
lejosc compiler from Ant.  That part's all hunky dory.

The problem is that lejosc is barfing on my command line.  When
running from Ant, I get a message from javac that the command syntax
is incorrect.  So I copied and pasted the command line that Ant is
using into my Cygwin bash window, and tried running it from the
command line, but I got really strange error messages that look like
a memory corruption somewhere.  Thinking that the mondo classpath was
the problem, I shortened the command line, but I am still getting the
errors.

Here is the output from ant -verbose:

   [lejosc] Compilation args after logAndAddFilesToCompile: lejosc -d D:/dev/pro
srm/lejos/../build/classes -classpath D:/dev/prosrm/build/classes;D:/dev/prosrm/
build/lib/restricted.jar;D:/dev/tools/jaas1.0/lib/jaas.jar;D:/dev/tools/jaxp1.0.
1/jaxp.jar;D:/dev/tools/xerces1.1.1/xerces.jar;D:/dev/tools/jaxp1.0.1/parser.jar
;D:/dev/tools/xalan1.2/xalan.jar;D:/dev/tools/saxon6.0.2/saxon.jar;D:/dev/tools/
colt1.0.1/colt.jar;D:/dev/vbroker/lib/vbjorb.jar;D:/dev/tools/oracleDrivers/clas
ses12.zip;D:/dev/tools/jakarta-tomcat3.2.1/lib/servlet.jar;D:/dev/tools/merantDr
ivers/fscontext.jar;D:/dev/tools/merantDrivers/jdbc2_0-stdext.jar;D:/dev/tools/m
erantDrivers/jndi.jar;D:/dev/tools/merantDrivers/jta-spec1_0_1.jar;D:/dev/tools/
merantDrivers/providerutil.jar;D:/dev/tools/merantDrivers/sljc.jar;D:/dev/tools/
merantDrivers/sljcx.jar;D:/dev/tools/merantDrivers/slssl.jar;D:/dev/tools/merant
Drivers/slssl_11.jar;D:/dev/tools/merantDrivers/spy.jar;D:/dev/prosrm/build/lib/
cnxbuilder.jar;D:/dev/prosrm/build/lib/common.jar;D:/dev/prosrm/build/lib/datama
nager.jar;D:/dev/prosrm/build/lib/dataobject.jar;D:/dev/prosrm/build/lib/dataobj
ect_ui.jar;D:/dev/prosrm/build/lib/forecaster.jar;D:/dev/prosrm/build/lib/system
.jar;D:/dev/prosrm/build/lib/taskinterpreter.jar;D:/dev/prosrm/build/lib/taskman
ager.jar;D:/dev/prosrm/build/lib/testsupport.jar;D:/dev/prosrm/build/lib/ui.jar;
D:/dev/jdk1.3/lib/tools.jar;D:/dev/tools/jakarta-ant1.3.1/lib/optional.jar;D:/de
v/tools/jakarta-ant1.3.1/lib/junit.jar;D:/dev/tools/jakarta-ant1.3.1/lib/js.jar;
D:/dev/tools/jakarta-ant1.3.1/lib/jaxp.jar;D:/dev/tools/jakarta-ant1.3.1/lib/jak
arta-regexp-1.2.jar;D:/dev/tools/jakarta-ant1.3.1/lib/crimson.jar;D:/dev/tools/j
akarta-ant1.3.1/lib/bsf.jar;D:/dev/tools/jakarta-ant1.3.1/lib/ant.jar;D:/dev/jdk
1.3/jre/lib/rt.jar -g D:/dev/prosrm/lejos/src/LineFollower.java D:/dev/prosrm/le
jos/src/sub.java D:/dev/prosrm/lejos/src/ToPeter.java D:/dev/prosrm/lejos/src/Tr
eadBot.java D:/dev/prosrm/lejos/src/Tune.java
   [lejosc] Usage: javac <options> <source files>
   [lejosc] where possible options include:
   [lejosc]   -g                        Generate all debugging info
   [lejosc]   -g:none                   Generate no debugging info
   [lejosc]   -g:{lines,vars,source}    Generate only some debugging info
   [lejosc]   -O                        Optimize; may hinder debugging or enlarg
e class file
   [lejosc]   -nowarn                   Generate no warnings
   [lejosc]   -verbose                  Output messages about what the compiler
is doing
   [lejosc]   -deprecation              Output source locations where deprecated
APIs are used
   [lejosc]   -classpath <path>         Specify where to find user class files
   [lejosc]   -sourcepath <path>        Specify where to find input source files

   [lejosc]   -bootclasspath <path>     Override location of bootstrap class fil
es
   [lejosc]   -extdirs <dirs>           Override location of installed extension
s
   [lejosc]   -d <directory>            Specify where to place generated class f
iles
   [lejosc]   -encoding <encoding>      Specify character encoding used by sourc
e files
   [lejosc]   -target <release>         Generate class files for specific VM ver
sion
   [lejosc]

BUILD FAILED

D:/dev/prosrm/lejos/build.xml:66: Compile failed, messages should have been prov
ided.

Total time: 16 seconds
/prosrm/lejos:


Here is the output from running lejosc directly from the bash command
line (the ?'s were hearts, stars, smiley faces, and other characters
in the old DOS character set control character range):

/prosrm/lejos:lejosc -d D:/dev/prosrm/lejos/../build/classes -classpath D:/dev/
jdk1.3/lib/tools.jar;D:/dev/tools/jakarta-ant1.3.1/lib/optional.jar;D:/dev/jdk1
.3/jre/lib/rt.jar -g D:/dev/prosrm/lejos/src/LineFollower.java
PK??: not found
%Mn*?org/PK??: not found
?org/PK??: not found
org/PK??: not found
%Mn*?org/apache/PK??: not found
?org/apache/PK??: not found
??: not found
<Mn*?org/apache/tools/PK??: not found
g/apache/tools/PK??: not found
<Mn*§org/apache/tools/ant/PK??: not found
ache/tools/ant/PK??: not found
<Mn*?org/apache/tools/ant/taskdefs/PK??: not found
s/ant/taskdefs/PK??: not found
D:/dev/tools/jakarta-ant1.3.1/lib/optional.jar: 15: Syntax error: Unterminated q
uoted string
PK??: not found
D:/dev/jdk1.3/jre/lib/rt.jar: 2: Syntax error: word unexpected (expecting ")")
/prosrm/lejos:


Any ideas?

--
Susan Hoover
Houston, TX



Message has 1 Reply:
  Re: leJOS: anyone building under Cygwin? problem! (very long, not wrapped)
 
(...) [snipped description of garbage characters output from lejosc] I hate to follow up to my own post, but I have some more info. This command line, with one item in the classpath, succeeds (well, it actually launches the compiler on the correct (...) (24 years ago, 16-Mar-01, to lugnet.robotics.rcx.java)

4 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