Bug 20896 - Build fails looking for javah.Main
Summary: Build fails looking for javah.Main
Status: RESOLVED DUPLICATE of bug 18667
Alias: None
Product: Ant
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 1.5.3
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-19 02:23 UTC by Carl Holtje
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Holtje 2003-06-19 02:23:01 UTC
The code [apache-ant-1.5.3-1/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java] 
instantiates a class "com.sun.tools.javah.Main" (line 350) with a String array as parameters... 
 
Using JDK 1.4.2 (see below), the com.sun.tools.javah.Main class does either A) not exist 
(doubtful), or B) not accept these parameters... 
 
I've done an unjarring of the JRE and a few other jars in the ${JAVA_HOME}/jre/lib directory, 
and have found nothing of this class... 
 
My java stats: 
$> java -version 
java version "1.4.2-beta" 
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19) 
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode) 
$> 
 
The applicable build output: 
Compiling 164 source files to /home/me/source/ant/apache-ant-1.5.3-1/build/classes 
/home/me/source/ant/apache-ant-1.5.3-1/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java:350: 
cannot resolve symbol 
symbol  : constructor Main (java.lang.String[]) 
location: class com.sun.tools.javah.Main 
            com.sun.tools.javah.Main main = new com.sun.tools.javah.Main(cmd.getArguments()); 
                                            ^ 
/home/me/source/ant/apache-ant-1.5.3-1/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java:351: 
cannot resolve symbol 
symbol  : method run () 
location: class com.sun.tools.javah.Main 
            main.run(); 
                ^ 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -deprecation for details. 
2 errors 
 
 
Any ideas?
Comment 1 peter reilly 2003-06-19 07:38:46 UTC

*** This bug has been marked as a duplicate of 18667 ***