You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-user@db.apache.org by John Fereira <ja...@cornell.edu> on 2006/12/09 02:12:52 UTC
Re: DDLUtils error when building with Ant (BUILD
FAILED,java.lang.NoClassDefFoundError)
At 06:11 PM 12/8/2006, you wrote:
>Hi John
>
>>You need to include the stax-api-1.0.jar file in your
>>classpath. It's in the lib directory of the distribution. You
>>might also need stax-1.1.2-dev.jar.
>
>Thank you for the feedback. I discovered all of the required
>libraries where you pointed me to and have included them. Feeling
>somewhat foolish now ...
Don't worry about it. Tracking down class not found exceptions can
sometimes be tricky. If you enter the class name that is causing the
exception (replacing the / chars with a period) into Google that will
almost always lead you to the javadoc page where the class is
described and you can usually find what jar file it came from there.
If you've got a directory full of jar files and you're not sure which
contains the class your looking for (and you're running on a unix
based system) here's a little script you can use to get a list of all
of the classes (run this in the directory containing the jar files.
#!/bin/sh
for name in *.jar
do
echo "jafrfile: " $name >> list
jar tvf $name >> list
done
Then you can edit the file called "list", search for the class name,
then scroll up to find he name of the jar file
There used to be a free service called Jarhoo that has a large
database of java class names but the last time I looked at it, the
site required registration. I wrote something similar to it long
before the web for a proprietary operating system.
>That has fixed the javax error.
>
>Regards,
>Langdon
John Fereira
jaf30@cornell.edu
Ithaca, NY
Re: DDLUtils error when building with Ant (BUILD FAILED,java.lang.NoClassDefFoundError)
Posted by Langdon Stevenson <la...@lindenrow.com.au>.
Hi Tom
Thanks for the suggestion, I will have a look at Jar Class Finder. Much
appreciated.
Regards,
Langdon
Thomas Dudziak wrote:
> On 12/8/06, Langdon Stevenson <la...@lindenrow.com.au> wrote:
>> Thanks John. I have been googling the class names, but am not always
>> managing to figure out which jar file is the parent. Again, this is my
>> weak Java skills holding me back.
>
> If you're using Eclipse, then there is this useful plugin:
> http://www.alphaworks.ibm.com/tech/jarclassfinder
>
> cheers,
> Tom
Re: DDLUtils error when building with Ant (BUILD FAILED,java.lang.NoClassDefFoundError)
Posted by Thomas Dudziak <to...@gmail.com>.
On 12/8/06, Langdon Stevenson <la...@lindenrow.com.au> wrote:
> Thanks John. I have been googling the class names, but am not always
> managing to figure out which jar file is the parent. Again, this is my
> weak Java skills holding me back.
If you're using Eclipse, then there is this useful plugin:
http://www.alphaworks.ibm.com/tech/jarclassfinder
cheers,
Tom
Re: DDLUtils error when building with Ant (BUILD FAILED,java.lang.NoClassDefFoundError)
Posted by Langdon Stevenson <la...@lindenrow.com.au>.
Thanks John. I have been googling the class names, but am not always
managing to figure out which jar file is the parent. Again, this is my
weak Java skills holding me back.
Thanks for the script, I will give it a whirl on my development server
next time I am stuck.
Regards,
Langdon
John Fereira wrote:
> At 06:11 PM 12/8/2006, you wrote:
>> Hi John
>>
>>> You need to include the stax-api-1.0.jar file in your classpath.
>>> It's in the lib directory of the distribution. You might also need
>>> stax-1.1.2-dev.jar.
>>
>> Thank you for the feedback. I discovered all of the required
>> libraries where you pointed me to and have included them. Feeling
>> somewhat foolish now ...
>
> Don't worry about it. Tracking down class not found exceptions can
> sometimes be tricky. If you enter the class name that is causing the
> exception (replacing the / chars with a period) into Google that will
> almost always lead you to the javadoc page where the class is described
> and you can usually find what jar file it came from there.
<snip>