You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by John Zacharias Theophanous <jt...@postino.up.ac.za> on 2003/06/26 16:47:17 UTC

NoClassDefFoundError

Hi All,

I am new to FOP and I have tried to run FOP using the following command
from the command prompt:

C:\>C:\fop-0.20.5rc\fop.bat -fo a:\simple.fo -pdf a:\simple.pdf

And I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/fop/apps/Fop

Any advice would be appreciated.

Regards,
John Theophanous.

*********************
J. Z. Theophanous,
Department of Information Science,
School of Information Technology,
Faculty of Engineering,
University of Pretoria,
South Africa.
 
Telephone Number: + 27 (0) 12 420 4026
Facsimile: + 27 (0) 12 362 5181
 
Web: http://is.up.ac.za/
 
"War does not determine who is right - only who is left."
(Bertrand Russell)

Re: NoClassDefFoundError

Posted by Clay Leeds <cl...@medata.com>.
On 6/26/2003 7:47 AM, John Zacharias Theophanous wrote:
> I am new to FOP and I have tried to run FOP using the following command
> from the command prompt:
> 
> C:\>C:\fop-0.20.5rc\fop.bat -fo a:\simple.fo -pdf a:\simple.pdf
> 
> And I get the following error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/fop/apps/Fop

Your question has already been answered more eloquently than I could do:

   http://xml.apache.org/fop/faq.html#NoClassDefFound

Aren't FAQs wonderful?
-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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


RE: NoClassDefFoundError

Posted by Andreas Delmelle <a_...@pandora.be>.
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sounds like a classpath problem to me... u must make sure the fop.jar
file is accessible 
at runtime. ( try adding PATH=%PATH%;C:\fop-0.20.5rc\build\fop.jar -
or wherever this file is located - 
to the batch file ).

greetz,

ald

- -----Original Message-----
From: John Zacharias Theophanous
[mailto:jtheophanous@postino.up.ac.za]
Sent: donderdag 26 juni 2003 16:47
To: fop-user@xml.apache.org
Subject: NoClassDefFoundError
Importance: High


Hi All,

I am new to FOP and I have tried to run FOP using the following
command
from the command prompt:

C:\>C:\fop-0.20.5rc\fop.bat -fo a:\simple.fo -pdf a:\simple.pdf

And I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/fop/apps/Fop

Any advice would be appreciated.

Regards,
John Theophanous.

*********************
J. Z. Theophanous,
Department of Information Science,
School of Information Technology,
Faculty of Engineering,
University of Pretoria,
South Africa.
 
Telephone Number: + 27 (0) 12 420 4026
Facsimile: + 27 (0) 12 362 5181
 
Web: http://is.up.ac.za/
 
"War does not determine who is right - only who is left."
(Bertrand Russell)

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPvscl9Bw/OvTa+XUEQIJKACfX1qnbh73ktvRi3bIGU12lfdgahQAoIMR
k3f2Ba8c+beIxuW9PLnj5113
=eY4P
-----END PGP SIGNATURE-----


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


Re: NoClassDefFoundError

Posted by Mukul <mu...@yahoo.com>.
if you go to directory fop-0.20.5rc and then run
fop.bat , you should not get this error. It shall find
the required jar file..

Regards,
Mukul

--- John Zacharias Theophanous
<jt...@postino.up.ac.za> wrote:
> Hi All,
> 
> I am new to FOP and I have tried to run FOP using
> the following command
> from the command prompt:
> 
> C:\>C:\fop-0.20.5rc\fop.bat -fo a:\simple.fo -pdf
> a:\simple.pdf
> 
> And I get the following error:
> Exception in thread "main"
> java.lang.NoClassDefFoundError:
> org/apache/fop/apps/Fop
> 
> Any advice would be appreciated.
> 
> Regards,
> John Theophanous.
> 
> *********************
> J. Z. Theophanous,
> Department of Information Science,
> School of Information Technology,
> Faculty of Engineering,
> University of Pretoria,
> South Africa.
>  
> Telephone Number: + 27 (0) 12 420 4026
> Facsimile: + 27 (0) 12 362 5181
>  
> Web: http://is.up.ac.za/
>  
> "War does not determine who is right - only who is
> left."
> (Bertrand Russell)
> > BEGIN:VCARD
> VERSION:2.1
> N:Theophanous;John;Zacharias
> FN:John Zacharias Theophanous
> (jtheophanous@postino.up.ac.za)
> ORG:University of Pretoria;Information Science
> TITLE:Lecturer
> TEL;WORK;VOICE:+27 (0) 12 420 4026
> TEL;HOME;VOICE:N/A
> TEL;CELL;VOICE:N/A
> TEL;WORK;FAX:+27 (0) 12 362 5181
> ADR;WORK;ENCODING=QUOTED-PRINTABLE:;Human Sciences
> Building 17-1;Human Sciences Building
> 17-1,=0D=0ADepartment =
> of Information Science,=0D=0ASchool of Information
> Technology,=0D=0AFaculty =
> of Engineering,=0D=0AUniversity of
> Pretoria,=0D=0APretoria,;0002,;;;South Af=
> rica
> LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Human Sciences
> Building 17-1=0D=0AHuman Sciences Building
> 17-1,=0D=0ADepartm=
> ent of Information Science,=0D=0ASchool of
> Information Technology,=0D=0AFacu=
> lty of Engineering,=0D=0AUniversity of
> Pretoria,=0D=0APretoria,=0D=0A0002,=
> =0D=0ASouth Africa
> URL;WORK:http://is.up.ac.za/staff/theophanous.htm
> EMAIL;PREF;INTERNET:jtheophanous@postino.up.ac.za
> REV:20030408T144452Z
> END:VCARD
> 
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
fop-user-help@xml.apache.org


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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