You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by hi...@accenture.com on 2005/10/26 18:04:14 UTC

Classpath problem on a unix system

Hello the list!
I am porting some originally windows-created ant scripts to a unix system.Those scripts were working fine on windows.
Now on unix(AIX 5.2),i have copied all the external jars that i needed under the lib folder of my ant install directory.
The problem is that those jars(ant-contrib, bsf.jar , js.jar etc...) do not seem to be recognized.
I keep getting a ClassNotFoundException..(for example Could not create type scriptdef due to java.lang.NoClassDefFoundError: org/apache/bsf/BSFException), whereas the bsf.jar is in the lib folder of ant install directory, same behaviour happens with listeners such as the ant-contrib performance listener).
Any clue?

Any help would be really welcome.


Hind Lwahhabi.


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

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


Re: Classpath problem on a unix system

Posted by Juergen Hermann <jh...@web.de>.
On Wed, 26 Oct 2005 18:04:14 +0200, hind.lwahhabi@accenture.com wrote:

>Any clue?
>Any help would be really welcome.

Try to find out how the shell wrapper (ant) on your system builds up the 
classpath. 

On SuSE f.x., ant has an --execdebug option to show the classpath used to 
launch Ant. And also there, what .jars are loaded is very different to what 
you might expect (it uses /etc/ant.conf).

Ciao, Jürgen



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