Ant javac classpath problem

I am seriosly stuck with this…

For some reason this line is making an error:

It says that it cannot find this class… The class which is missing is in one of the jars in the classpath… Why is it not working?

EDIT:
Also, this works for some reason:

But I want to be able to use all the jars in that folder… Not just that single one…

Also, the first set of code was working but then one time it just stopped working for some reason…

EDIT2:
Also, I tried using javac in command prompt with the classpath and it worked…

Which version of ant do you use?

I don’t know… I’m using the one packed with eclipse (should be latest version of eclipse)

Hi

The classpath must contain some path-like elements:
http://ant.apache.org/manual/using.html#path

This should work with at least Ant 1.8.2:

<classpath>
      <fileset dir="lib/jars">
        <include name="*.jar"/>
      </fileset>
</classpath>

Please read the documentation before asking a question here.

Edit.: Please go to “Window” -> “Preferences” -> “Ant” -> “Runtime” and look at Ant Home Entries in the top of the list in the very first tab to know which version you use.

Thx, worked perfectly… Sry, I haven’t read everything in the manual yet… I just tried reading through the ant task list…

You’re welcome. You should read this before looking at the task list in order to understand the concepts of Ant, the references, the data types, …