You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Thomas Saxtoft <TS...@sondagsavisen.dk> on 2002/04/05 09:57:33 UTC
Compile error
Hi
I have a compile problem, but I post to this list since I think it must
be due to an error in my settings for Ant.
When I compile my classes I get the following message. I believe the
compiler can find the class JScrollableDesktopPane, else I would have
got an error earlier in the compile process. JScrollableDesktopPane is
located in a jar file, together with other classes used as well, and yes
it does contain the method getAllFrames().
I've got no problem compiling in NetBeans.
compile:
[javac] Compiling 69 source files to C:\Documents and
Settings\ts\Dokumenter\Java kode\dk\son\Ant\temp\classes
[javac] C:\Documents and Settings\ts\Dokumenter\Java
kode\dk\son\Ant\temp\src\dk\son\nms\client\NmsDesktop.java:400: cannot
resolve symbol
[javac] symbol : method getAllFrames ()
[javac] location: class
com.tomtessier.scrollabledesktop.JScrollableDesktopPane
[javac] JInternalFrame[] frames = sdp.getAllFrames();
[javac] ^
[javac] 1 error
The following is taken from my build.xml:
<target name="compile">
<!-- Copies (if new exits) jar files from the jar file folder to
lib -->
<copy todir="${lib.dir}">
<fileset dir="${jar.dir}">
<include name="*.jar" />
</fileset>
</copy>
<javac
srcdir="${temp.src.dir}"
destdir="${temp.class.dir}"
includesfile="${compile.files}"
excludesfile="${exclude.files}"
classpathref="jar.class.path">
</javac>
</target>
Ok, hoping somebody know the answer :-)
Thomas
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Compile error
Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 5 Apr 2002, Thomas Saxtoft <TS...@sondagsavisen.dk> wrote:
> JScrollableDesktopPane is located in a jar file, together with other
> classes used as well, and yes it does contain the method
> getAllFrames().
Is there a different (older/newer) version of
com.tomtessier.scrollabledesktop.JScrollableDesktopPane that doesn't
have this method and could be on your CLASSPATH? Maybe javac finds
this one first, run ant -verbose to see the arguments Ant passes to
javac.
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>