ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Krishnaswamy <rajkris...@yahoo.com>
Subject Help Needed: Unable to build!
Date Fri, 03 Oct 2003 00:22:23 GMT
I have got Ant installed in a Linux environment. I
have done the installation part correctly. When I try
to build a java file it throws up with an
"java.lang.NoClassDefFoundError". My guess is that the
classpath has to be set for the tools.jar file. But
since java is loaded along with the linux package I am
unable to find tools.jar. I am attaching the error
output below.  Please let me know what can be done
about this?

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$

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


Mime
View raw message