R
RalphLeon
Every year or so I do a project with java.... and every year I come
into the same problem.
I have a jar file I want to use with my application, say Foo.jar in
the "lib" directory.
My application is a jar file, say Bar.jar put together by ant.
I want to use some utility in Foo.jar
I call:
$ java -classpath .:lib/Foo.jar -jar Bar.jar
and I get a "Exception in thread "main"
java.lang.NoClassDefFoundError: " related to the class I want in
Foo...
In my main file I did a
"include Foo.*;"
and everything *compiles* just fine.... I can post specific code if it
will help.... I figure I am just forgetting something silly...
At Your Mercy,
Ralph
into the same problem.
I have a jar file I want to use with my application, say Foo.jar in
the "lib" directory.
My application is a jar file, say Bar.jar put together by ant.
I want to use some utility in Foo.jar
I call:
$ java -classpath .:lib/Foo.jar -jar Bar.jar
and I get a "Exception in thread "main"
java.lang.NoClassDefFoundError: " related to the class I want in
Foo...
In my main file I did a
"include Foo.*;"
and everything *compiles* just fine.... I can post specific code if it
will help.... I figure I am just forgetting something silly...
At Your Mercy,
Ralph