Ant is assuming Sun's JRE

Bug #126410 reported by Christian Svensson
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ant (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: ant

While bulding wrapper-3.2.3 (Not a Ubuntu/Debian package yet) - http://wrapper.tanukisoftware.org/doc/english/introduction.html :

BUILD FAILED
/home/bluecommand/Workbench/freenet/real/deb/wrapper-3.2.3/build.xml:429: Can't load javah

        <javah
            destdir="${src.dir}/c"
            classpath="${build.classes}">
            <class name="org.tanukisoftware.wrapper.WrapperManager"/>
        </javah>

In ./src/main/org/apache/tools/ant/taskdefs/optional/javah/SunJavah.java , line 57:
c = Class.forName("com.sun.tools.javah.Main");
...
throw new BuildException(
                "Can't load javah", ex, javah.getLocation());

This needs to be gnu.classpath.tools.javah.Main if GNU classpath is used.

Revision history for this message
Michael Koch (konqueror) wrote :

I can confirm this bug. I will provide a patch soon.

Changed in ant:
status: New → Confirmed
Revision history for this message
Ken Sharp (kennybobs) wrote :

Ping: six years later.

Emmanuel Bourg (ebourg)
Changed in ant (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.