users@jaxb.java.net

Re: Help please: NoClassDefFoundError occurs running the examples

From: Ed Mooney <Ed.Mooney_at_sun.com>
Date: Wed, 14 May 2003 17:57:23 -0400

Hi Laura,

Laura Ferguson wrote:
> Thanks for pointing out the error in the batch file... but that doesn't
> seem to be the whole solution.
>
>> But like Kohsuke said, why not just use the supplied Ant build.xml
>> files?
>
>
> I did try using Ant before, but to be sure I just tried using again and
> got the same error...
>
> G:\Program Files\jwsdp-1.1\jaxb-1.0>"G:\Program
> Files\jwsdp-1.1\jakarta-ant-1.5.1\bin\ant" -emacs Exception in
> thread "main" java.lang.NoClassDefFoundError:
> Files\j2sdk1/4/1_02\lib\tools/jar;G:\Program

The mixed path segment separators ("\" and "/") are peculiar. What shell
are you using?

>
> The setupant.bat file looks like this...
>
> @echo on
> set JAVA_HOME=G:\Program Files\j2sdk1.4.1_02\bin
> set JWSDP_HOME=G:\Program Files\jwsdp-1.1
> set JAXB_HOME=%JWSDP_HOME%\jaxb-1.0
>
> set ANT_HOME=%JWSDP_HOME%\jakarta-ant-1.5.1
> set PATH="%JAXB_HOME%\bin";"%JWSDP_HOME%\jwsdp-shared\bin";%path%
> "%ANT_HOME%\bin\ant" -emacs

Regards,
--
Ed Mooney         |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201            |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive       |fruit flies like
781-442-0459      |Burlington, MA  01803 |a banana. Groucho