Bug 21554 - Exception in thread "main" java.lang.NoClassDefFoundError:
Summary: Exception in thread "main" java.lang.NoClassDefFoundError:
Status: CLOSED DUPLICATE of bug 21070
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.5
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 21555 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-14 02:20 UTC by jpabecasis
Modified: 2012-04-01 13:52 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jpabecasis 2003-07-14 02:20:52 UTC
(Probably a newbie thing but for the next newbie that might run into this...)

I was unable to run fop (0.20.5rc3a) using out-of-the-box fop.bat receiving a 
NoClassDefFoundError...
After many failed attempts I finally traced it to the batch file itself: 
surrounding the %LOCALCLASSPATH% with " (quotes) fixed it for me!!!

So the last line of fop.bat becomes

java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8

This error will only surface when your classpath includes spaces (and probably 
some other special characters...) like mine did ('Documents and Settings'!... 
downloaded to personal directory...)
I suggest including quotes (by default) in scripts where it might be an issue or 
making a note in the FAQ.
Comment 1 jpabecasis 2003-07-14 02:24:41 UTC
*** Bug 21555 has been marked as a duplicate of this bug. ***
Comment 2 Jeremias Maerki 2003-07-14 07:38:03 UTC

*** This bug has been marked as a duplicate of 21070 ***
Comment 3 Glenn Adams 2012-04-01 13:52:35 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs