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 23726] New: - Ant 1.6beta breaks the javah task with Java 1.4.2
Date Fri, 10 Oct 2003 14:27:28 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=23726>.
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=23726

Ant 1.6beta breaks the javah task with Java 1.4.2

           Summary: Ant 1.6beta breaks the javah task with Java 1.4.2
           Product: Ant
           Version: 1.6Beta
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Build Process
        AssignedTo: dev@ant.apache.org
        ReportedBy: Pierre.Nugues@cs.lth.se


I use an ant makefile to compile a set of classes. Everything compiles but the
javah line breaks the code with Java 1.4.2. The Java 1.4.1 works fine.

This bug has been flagged as solved in 1.5.4 but I still have the error 
message as well as with the 1.6 beta version.

Here is the excerpt that breaks the ant compile:
<target name="header" depends="compile">
<javah classpath="${outputDir}" destdir="${cSrcDir}"
    force="yes">
<class name="se.lth.cs.carsim.LinkGrammarAPI" />
</javah>
</target>


ClassArgument.name=se.lth.cs.carsim.LinkGrammarAPI
java.lang.NoSuchMethodError: com.sun.tools.javah.Main.<init>
([Ljava/lang/String;)V
        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.module.run.TargetExecutor.run
(TargetExecutor.java:331)
        at org.netbeans.core.execution.RunClassThread.run
(RunClassThread.java:118)
BUILD FAILED

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


Mime
View raw message