DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21555>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21555

Exception in thread "main" java.lang.NoClassDefFoundError:

           Summary: Exception in thread "main"
                    java.lang.NoClassDefFoundError:
           Product: Fop
           Version: 0.20.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


(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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to