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 21270] New: - javah task bombs with java.lang.NoSuchMethodError on JDK 1.4.2
Date Wed, 02 Jul 2003 11:32:38 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=21270>.
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=21270

javah task bombs with java.lang.NoSuchMethodError on JDK 1.4.2

           Summary: javah task bombs with java.lang.NoSuchMethodError on JDK
                    1.4.2
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: apache@forward.com.au


Work Around is to use exec task and a batch file which calls javah

Error output

Detected Java version: 1.4 in: C:\j2sdk1.4.2\jre
Detected OS: Windows 2000

.....

compileEXE:
    [javah] ClassArgument.name=au.com.forward.gaussApi.Gauss
    [javah] ClassArgument.name=au.com.forward.gaussApi.GaussWorkspace
    [javah] Compilation arguments:
    [javah] '-d'
    [javah] 'C:\Parallel\src\C_code\C_CodeV5.0'
    [javah] '-classpath'
    [javah] 'C:\ParallelBuild'
    [javah] '-force'
    [javah] 
    [javah] The ' characters around the executable and arguments are
    [javah] not part of the command.
    [javah] Classes to be compiled:
    [javah]     au.com.forward.gaussApi.Gauss
    [javah]     au.com.forward.gaussApi.GaussWorkspace

BUILD FAILED
java.lang.NoSuchMethodError: com.sun.tools.javah.Main.<init>
([Ljava/lang/String;)V
	at org.apache.tools.ant.taskdefs.optional.Javah.doClassicCompile
(Javah.java:350)
	at org.apache.tools.ant.taskdefs.optional.Javah.execute(Javah.java:320)
	at org.apache.tools.ant.Task.perform(Task.java:341)
	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:1339)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
	at org.apache.tools.ant.Main.runBuild(Main.java:609)
	at org.apache.tools.ant.Main.start(Main.java:196)
	at org.apache.tools.ant.Main.main(Main.java:235)

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


Mime
View raw message