ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rumalla, Naveen" <naveen.ruma...@bofasecurities.com>
Subject Problem with 'javah' task.
Date Mon, 24 Nov 2003 14:29:44 GMT
Hi,

I am new to ant and I am trying to use the optional task - javah and I am
having a problem. I get an error which I am not able to figure out what it
means. Any help in this regard will be greatly appreciated.

Thanks,
Naveen.

-----------------------------------------------

Following is my build xml.

============================== BEGIN build.xml
<?xml version="1.0"?>

<!--
  Default base build file
  $Id$
-->

<project default="build" basedir=".">
        <target name="test">
                <echo message="Testing"/>
<!--            <javac srcdir="."/> -->
                <javah>
                        <class name="PrometheusJavaClient"/>
                </javah>
        </target>
</project>
======================================= END build.xml


I already have '.class' file PrometheusJavaClient in the current directory
and I get the following error when I run ant. Error output is given below.


======================================== BEGIN error output

ant -v test
Apache Ant version 1.5.1 compiled on December 6 2002
Buildfile: build.xml
Detected Java version: 1.4 in: /home/nbk57of/Java/j2sdk1.4.2_02/jre
Detected OS: SunOS
parsing buildfile build.xml with URI =
file:/home/nbk57of/WorkDir_Branch_Jupiter_Dev_94/projects/Jupiter/apps/Prome
theus/JavaWrapper/build.xml
Project base dir set to:
/home/nbk57of/WorkDir_Branch_Jupiter_Dev_94/projects/Jupiter/apps/Prometheus
/JavaWrapper
Build sequence for target `test' is [test]
Complete build sequence is [test]

test:
     [echo] Testing
    [javah] ClassArgument.name=PrometheusJavaClient
    [javah] Compilation arguments:
    [javah] '-d'
    [javah]
'/home/nbk57of/WorkDir_Branch_Jupiter_Dev_94/projects/Jupiter/apps/Prometheu
s/JavaWrapper'
    [javah] '-classpath'
    [javah]
'/opt/ant-1.5.1/lib/xml-apis.jar:/opt/ant-1.5.1/lib/xercesImpl.jar:/opt/ant-
1.5.1/lib/optional.jar:/opt/ant-1.5.1/lib/ant.jar:/home/nbk57of/Java/j2sdk1.
4.2_02/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]     PrometheusJavaClient

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: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

======================================== END error output




____________________________________________________________________

IMPORTANT NOTICES: 
          This message is intended only for the addressee. Please notify the
sender by e-mail if you are not the intended recipient. If you are not the
intended recipient, you may not copy, disclose, or distribute this message
or its contents to any other person and any such actions may be unlawful.
 
         Banc of America Securities LLC("BAS") does not accept time
sensitive, action-oriented messages or transaction orders, including orders
to purchase or sell securities, via e-mail.

         BAS reserves the right to monitor and review the content of all
messages sent to or from this e-mail address. Messages sent to or from this
e-mail address may be stored on the BAS e-mail system.
__________________________________________________________________

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


Mime
View raw message