ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Krishnaswamy <rajkris...@yahoo.com>
Subject Re: AW: Help Needed
Date Fri, 03 Oct 2003 16:42:52 GMT
Thanks Antoine,

But I wasnt running a script task. I had problem with
a preinstalled java version on the Linux machine and
unable to specify the classpath for tools.jar. 

Now I am using the easier way of installing new java
version and specifying classpath to its tools.jar

Rajesh.

--- Antoine_Levy-Lambert <antoine@antbuild.com> wrote:
> 
> You are probably running ant1.5.4 or older.
> You need bsf.jar  for the script task, available
> from
> oss.software.ibm.com/developerworks/projects/bsf.
> The bsf.jar should go into $ANT_HOME/lib.
> Cheers,
> Antoine
> -----Ursprungliche Nachricht-----
> Von: Rajesh Krishnaswamy
> [mailto:rajkrish23@yahoo.com]
> Gesendet: Donnerstag, 2. Oktober 2003 23:11
> An: Ant Users List
> Betreff: Help Needed
> 
> 
> I am using a Linux environment preloaded with java
> related stuffs at /usr/bin, the installation of Ant
> seems to be working fine. But when I try to run a
> small sample program in java the ant throws an
> exception as shown below
> 
> bash-2.05b$ ant
> Buildfile: build.xml
> 
> BUILD FAILED
> java.lang.ExceptionInInitializerError: [exception
> was
> java.lang.NoClassDefFoundError:
> com/ibm/bsf/BSFManager]
>         at
>
java.lang.ClassLoader.resolveClass0(ClassLoader.java:native)
>         at
>
java.lang.ClassLoader.resolveClass(ClassLoader.java:199)
>         at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:156)
>         at java.lang.Class.forName(Class.java:74)
>         at java.lang.Class.forName(Class.java:43)
>         at
> org.apache.tools.ant.Project.init(Project.java:274)
>         at
> org.apache.tools.ant.Main.runBuild(Main.java:582)
>         at
> org.apache.tools.ant.Main.start(Main.java:196)
>         at
> org.apache.tools.ant.Main.main(Main.java:235)
> 
> Total time: 0 seconds
> java.lang.ExceptionInInitializerError: [exception
> was
> java.lang.NoClassDefFoundError:
> com/ibm/bsf/BSFManager]
>         at
>
java.lang.ClassLoader.resolveClass0(ClassLoader.java:native)
>         at
>
java.lang.ClassLoader.resolveClass(ClassLoader.java:199)
>         at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:156)
>         at java.lang.Class.forName(Class.java:74)
>         at java.lang.Class.forName(Class.java:43)
>         at
> org.apache.tools.ant.Project.init(Project.java:274)
>         at
> org.apache.tools.ant.Main.runBuild(Main.java:582)
>         at
> org.apache.tools.ant.Main.start(Main.java:196)
>         at
> org.apache.tools.ant.Main.main(Main.java:235)
> [exception was java.lang.NoClassDefFoundError:
> com/ibm/bsf/BSFManager]
> bash-2.05b$
> 
> 
> I am unable to figure out what is wrong!!
> 
> Do anyone have an idea of what could be wrong?
> can anyone help me in making it work?
> 
> Thanks in advance.
> Rajesh.
> 
> =====
> Imagination is more important than knowledge.
> Knowledge is limited.
> Imagination encircles the world. - Albert Einstein.
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 

=====
Imagination is more important than knowledge. Knowledge is limited.
Imagination encircles the world. - Albert Einstein.

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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


Mime
View raw message