ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5836] New: - Relocation error
Date Mon, 14 Jan 2002 14:29:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5836>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5836

Relocation error

           Summary: Relocation error
           Product: Ant
           Version: 1.4.1
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: cyril.glaume@valtech.fr


Hi !

I've got a minor bug to submit :

I've just downloaded and installed Ant 1.4.1.
Here is what is displaid on standard output (command DOS)
when I try to launch ANT:

"D:\Code\tests\ant\xml>ant dist
Buildfile: build.xml
A nonfatal internal JIT (3.10.107(x)) error 'Relocation error: NULL relocation 
target' has
 occurred in :
  'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method.
  Please report this error in detail to http://java.sun.com/cgi-
bin/bugreport.cgi

test:
    [mkdir] Created dir: D:\Code\tests\ant\build\classes

compile:
    [javac] Compiling 1 source file to D:\Code\tests\ant\build\classes

dist:
    [mkdir] Created dir: D:\Code\tests\ant\build\lib
      [jar] Building jar: D:\Code\tests\ant\build\lib\MyProject-${DSTAMP}.jar

BUILD SUCCESSFUL

Total time: 2 seconds"

As you can see everything has been done but I've got that
exception apparently coming from CRIMSON.

I'm working in those repositories:

ant------xml------build.xml
         java-----Test.java

I launch ant from xml repository.

Here is my build.xml file:

<?xml version="1.0" encoding="ISO-8859-1"?>

<project name="essaiCyril" default="test" basedir="..">

  <!-- set global properties for this build -->
  <property name="java" value="java"/>
  <property name="build" value="build"/>
  <property name="classes" value="${build}/classes"/>
  <property name="lib" value="${build}/lib"/>

  <target name="test">
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${classes}"/>
  </target>

  <target name="compile" depends="test">
    <!-- Compile the java code from ${java} into ${classes} -->
    <javac srcdir="${java}" destdir="${classes}"/>
  </target>

  <target name="dist" depends="compile">
    <!-- Create the distribution directory -->
    <mkdir dir="${lib}"/>

    <!-- Put everything in ${classes} into the MyProject-${DSTAMP}.jar file -->
    <jar jarfile="${lib}/MyProject-${DSTAMP}.jar" basedir="${classes}"/>
  </target>
  
</project>

It's pretty simple !!

Here is Test.java :

"package test;

public class Test {
	
	public Test(String coucou) {
		System.out.println(coucou);
	}
	
	public static final void main(String[] args) {
		Test test = new Test("Hey!");	
	}
	
}
"

I hope it can help you explain me what is happening.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message