You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Patrick (Gus) Heck" <pa...@olin.edu> on 2002/05/28 19:01:22 UTC

please reccomend a jdk for testing 1.1 compatability on linux

What 1.1 jdks are currently used to test the back compatability of ant?

I am trying to follow the advice in ant_task_guidelines.html and test a 
task I plan on submitting under java 1.1, but I have tried two different 
1.1.8 jdks from blackdown.org, and I get the following when I try to 
compile a fresh checkout of the ANT_15_BRANCH:

[gus@kestrel gus]$ uname -mprv
2.4.17-rmap12f #2 Tue Feb 26 12:53:26 EST 2002 i686 unknown
[gus@kestrel projects]$ echo $ANT_HOME

[gus@kestrel projects]$ echo $JAVA_HOME
/home/gus11/jdk118_v1
[gus@kestrel projects]$ echo $PATH
/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/X11R6/bin:.:/home/gus11/jdk118_v1/bin
[gus@kestrel projects]$ java -version
java version "1.1.8"
[gus@kestrel projects]$ cd jakarta-ant
[gus@kestrel jakarta-ant]$ free
total used free shared buffers cached
Mem: 256248 195836 60412 0 21624 120676
-/+ buffers/cache: 53536 202712
Swap: 530104 0 530104
[gus@kestrel jakarta-ant]$ build.sh
... Bootstrapping Ant Distribution
... Compiling Ant Classes
Note: 14 files use deprecated APIs. Recompile with "-deprecation" for 
details. 1 warning
... Copying Required Files
... Building Ant Distribution
Buildfile: build.xml

bootstrap:

prepare:

check_for_optional_packages:

build:
Created dir: /home/gus/projects/jakarta-ant/build/lib
Compiling 125 source files to /home/gus/projects/jakarta-ant/build/classes
Note: 4 files use deprecated APIs. Recompile with "-deprecation" for 
details.
1 warning
Copying 1 file to /home/gus/projects/jakarta-ant/build/classes
Copying 2 files to /home/gus/projects/jakarta-ant/build/classes
Copying 2 files to 
/home/gus/projects/jakarta-ant/build/classes/org/apache/tools/ant/taskdefs/optional/junit/xsl

jars:
Copying 2 files to /home/gus/projects/jakarta-ant/build
Building jar: /home/gus/projects/jakarta-ant/build/lib/ant.jar
Building jar: /home/gus/projects/jakarta-ant/build/lib/optional.jar

dist-lite:
Created dir: /home/gus/projects/jakarta-ant/bootstrap
Created dir: /home/gus/projects/jakarta-ant/bootstrap/bin
Created dir: /home/gus/projects/jakarta-ant/bootstrap/lib
Copying 2 files to /home/gus/projects/jakarta-ant/bootstrap/lib
Copying 9 files to /home/gus/projects/jakarta-ant/bootstrap/bin

BUILD SUCCESSFUL
Total time: 3 minutes 33 seconds
... Cleaning Up Build Directories
... Done Bootstrapping Ant Distribution
Buildfile: build.xml

prepare:

check_for_optional_packages:

build:
Created dir: /home/gus/projects/jakarta-ant/build/classes
Compiling 401 source files to /home/gus/projects/jakarta-ant/build/classes
java.lang.OutOfMemoryError:
at java.io.BufferedReader.<init>(BufferedReader.java)
at java.io.BufferedReader.<init>(BufferedReader.java)
at sun.tools.java.ScannerInputStream.<init>(ScannerInputStream.java)
at sun.tools.java.Scanner.useInputStream(Scanner.java)
at sun.tools.java.Scanner.<init>(Scanner.java)
at sun.tools.java.Parser.<init>(Parser.java)
at sun.tools.javac.BatchParser.<init>(BatchParser.java)
at sun.tools.javac.BatchEnvironment.parseFile(BatchEnvironment.java)
at sun.tools.javac.Main.compile(Main.java)
at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:106)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:818)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:660)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1216)
at org.apache.tools.ant.Project.executeTargets(Project.java:1160)
at org.apache.tools.ant.Main.runBuild(Main.java:605)
at org.apache.tools.ant.Main.start(Main.java:195)
at org.apache.tools.ant.Main.main(Main.java:234)
error: An error has occurred in the compiler; please file a bug report 
(http://java.sun.com/cgi-bin/bugreport.cgi).
1 error

BUILD FAILED
/home/gus/projects/jakarta-ant/build.xml:557: Compile failed; see the 
compiler error output for details.

Total time: 4 minutes 34 seconds


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: please reccomend a jdk for testing 1.1 compatability on linux

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 29 May 2002, Patrick Heck <pa...@olin.edu> wrote:

> I looked at the xml file for this test and it seems that the
> classpath they have defined assumes that jarfiles are in the
> ${java.home}/lib directory, but the 1.1 from blackdown isn't
> organized this way.

I have Blackdown's 1.1.8_v3 and it has classes.zip in
${java.home}/lib.  Strange.  Ah, there is classes.jar in the testcase
instead of zip.  Will fix it.

> Also there are some funky looking absolute paths that don't make any
> sense to me,

MacOS X.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: please reccomend a jdk for testing 1.1 compatability on linux

Posted by "Patrick (Gus) Heck" <pa...@olin.edu>.
Thanks much for the ANT_OPTS setting. That did the trick. The only 
problem is as soon as I got it compiled, I did build.sh test... and you 
guessed it found a test failing under 1.1

AvailableTest dies on test21:

I looked at the xml file for this test and it seems that the classpath 
they have defined assumes that jarfiles are in the ${java.home}/lib 
directory, but the 1.1 from blackdown isn't organized this way. Also 
there are some funky looking absolute paths that don't make any sense to 
me, but I assume they are for some special case I don't appriciate.

This doesn't impact my work, and I don't have time to fix it, but 
someone might want
to look at it.

Gus

As food for thought here is the xml bit for test21, the test case simply 
tests that test=="true".

  <target name="test21">
    <available property="test" ignoresystemclasses="true"
               classname="java.awt.Graphics">
      <classpath>
        <pathelement location="${java.home}/lib/rt.jar" />
        <pathelement location="${java.home}/lib/classes.jar" />
        <pathelement 
location="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar" 
/>
        <pathelement 
location="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/ui.jar" 
/>
      </classpath>
    </available>
  </target>


Stefan Bodewig wrote:

>On Tue, 28 May 2002, Patrick Heck <pa...@olin.edu> wrote:
>
>>What 1.1 jdks are currently used to test the back compatability of
>>ant?
>>
>
>I use Blackdown's 1.1.8_v3 on Linux.
>
>Oh, and I use
>
>ANT_OPTS=-mx256m ./bootstrap.sh
>
>to get around the OutOfMemoryException 8-)
>
>Stefan
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: please reccomend a jdk for testing 1.1 compatability on linux

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 28 May 2002, Patrick Heck <pa...@olin.edu> wrote:

> What 1.1 jdks are currently used to test the back compatability of
> ant?

I use Blackdown's 1.1.8_v3 on Linux.

Oh, and I use

ANT_OPTS=-mx256m ./bootstrap.sh

to get around the OutOfMemoryException 8-)

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>