You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/07/23 15:49:52 UTC
DO NOT REPLY [Bug 21827] New: -
javah doesn't work with java j2sdk1.4.2
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=21827>.
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=21827
javah doesn't work with java j2sdk1.4.2
Summary: javah doesn't work with java j2sdk1.4.2
Product: Ant
Version: 1.5.3
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Optional Tasks
AssignedTo: dev@ant.apache.org
ReportedBy: stakken@gti-group.com
I want to use javah for making a C++ header file but it fails with Java
j2sdk1.4.2. It works well with j2sdk1.4.1_03
Failing part of the build.xml:
<javah class="gti.plc.server.opc.OPCCustomInterface"
outputFile="${native.dir}/OPCCustomInterface.h">
</javah>
Apache Ant version 1.5.3 compiled on April 16 2003
Buildfile: build.xml
Detected Java version: 1.4 in: e:\tools\j2sdk1.4.2\jre
Detected OS: Windows NT
parsing buildfile build.xml with URI = file:e:/projecten/Software/OPC/build.xml
Project base dir set to: E:\projecten\Software\OPC
[property] Loading C:\WINNT\Profiles\stakken\.ant.properties
[property] Unable to find property file:
C:\WINNT\Profiles\stakken\.ant.properties
Build sequence for target `native' is [utags, prepare,
check_for_optional_packages, compile, native]
Complete build sequence is [utags, prepare, check_for_optional_packages,
compile, native, initMyPath
Separator, scripts, jar, rebuild, javadocs]
utags:
[exec] Current OS is Windows NT
[exec] Executing 'ctags' with arguments:
[exec] '-R'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
prepare:
check_for_optional_packages:
compile:
[javac] gti\plc\server\opc\OPCCustomInterface.java omitted as
gti/plc/server/opc/OPCCustomInterface.class is up to date.
[javac] gti\plc\server\opc\OPCException.java omitted as
gti/plc/server/opc/OPCException.class is up to date.
[javac] gti\plc\server\opc\OPCInterface.java omitted as
gti/plc/server/opc/OPCInterface.class is up to date.
[javac] gti\plc\server\opc\Variant.java omitted as
gti/plc/server/opc/Variant.class is up to date.
[javac] TestOPC.java omitted as TestOPC.class is up to date.
ace.class is up to date.
[javac] gti\plc\server\opc\OPCException.java omitted as
gti/plc/server/opc/OPCException.class is
up to date.
[javac] gti\plc\server\opc\OPCInterface.java omitted as
gti/plc/server/opc/OPCInterface.class is
up to date.
[javac] gti\plc\server\opc\Variant.java omitted as
gti/plc/server/opc/Variant.class is up to date.
[javac] TestOPC.java omitted as TestOPC.class is up to date.
native:
[javah] Compilation arguments:
[javah] '-o'
[javah] 'E:\projecten\Software\OPC\VStudio\OPCnative\OPCCustomInterface.h'
[javah] '-classpath'
[javah] 'E:\tools\ant\lib\xml-
apis.jar;E:\tools\ant\lib\xercesImpl.jar;E:\tools\ant\lib\optional
.jar;E:\tools\ant\lib\ant.jar;E:\projecten\Software\OPC;E:\projecten\Software\OP
C\classes;E:\tools\j2sdk1.4.2\lib\tools.jar'
[javah]
[javah] The ' characters around the executable and arguments are
[javah] not part of the command.
[javah] Class to be compiled:
[javah] gti.plc.server.opc.OPCCustomInterface
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)
Total time: 3 seconds
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)
com.sun.tools.javah.Main.<init>([Ljava/lang/String;)V
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org