Bug 21070 - ClassPath with spaces cause undefined class errors
Summary: ClassPath with spaces cause undefined class errors
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.5
Hardware: PC Windows XP
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 21554 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-25 03:59 UTC by James Kilfiger
Modified: 2012-04-01 06:38 UTC (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Kilfiger 2003-06-25 03:59:04 UTC
When I started fop I got an error about class "and" not being defined. After
poking around a bit I found the problem was the fop.bat script. It was trying to
execute
java -cp C:\Documents and settings\james\...
and it iterpreted "and" as the class to execute, and threw the error.

My patch was to quote the classpath in fop.bat, that is:
change 
  java -cp %LOCALCLASSPATH% org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
to
  java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8

perhaps that breaks something in W9x, I haven't checked.
Comment 1 Jeremias Maerki 2003-07-14 07:38:04 UTC
*** Bug 21554 has been marked as a duplicate of this bug. ***
Comment 2 Jeremias Maerki 2003-07-14 07:41:29 UTC
Fixed in CVS. Thanks.
Comment 3 Glenn Adams 2012-04-01 06:38:25 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed