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 18667] New: - javah module no longer works with Java 1.4.2
Date Thu, 03 Apr 2003 20:25:12 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=18667>.
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=18667

javah module no longer works with Java 1.4.2

           Summary: javah module no longer works with Java 1.4.2
           Product: Ant
           Version: 1.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: calvin.austin@sun.com


The javah module uses the old internal interface to javah with entry point Main
and method run() and will generate an error for new JDK releases

java.lang.NoClassDefFoundError: com/sun/tools/javah/Main
 at org.apache.tools.ant.taskdefs.optional.Javah.doClassicCompile(Javah.java:348)
 at org.apache.tools.ant.taskdefs.optional.Javah.execute(Javah.java:318)
 at org.apache.tools.ant.Task.perform(Task.java:319)
 at org.apache.tools.ant.Target.execute(Target.java:309)
 at org.apache.tools.ant.Target.performTasks(Target.java:336)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
 at org.apache.tools.ant.Main.runBuild(Main.java:610)
 at org.apache.tools.ant.Main.start(Main.java:196)
 at org.apache.tools.ant.Main.main(Main.java:235)

Example test case

<project name="test" default="build" basedir=".">
     <target name="build" >
         <javah destdir="." class="hello">
             <classpath>
                 <pathelement path="classes"/>
             </classpath>
         </javah>
    </target>
</project>

Mime
View raw message