Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-230

[PATCH] Spaces in the path to the JDK installation cause compile to fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: Version 2, Version 2.1
    • Fix Version/s: Version 2, Version 2.1
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      Windows XP Pro SP2, java 1.5.0_05

      Description

      By default the new JDK installs into C:\Program Files\Java\jdk...
      If the location of your JDK has spaces in the path (default), compilation will fail. The fix is the following to the file scomp.cmd file:

      Line 29: set cp=%cp%;"%JAVA_HOME%\lib\tools.jar" add the double quotes

      Line 32: "%JAVA_HOME%\bin\java" -classpath %cp% org.apache.xmlbeans.impl.tool.SchemaCompiler %* added the double quotes and referenced the environment variable %JAVA_HOME%.

      Without those above fixes I could not get XMLBeans to compile, it would fail. It is also possible that spaces in the XMLBEANS_LIB path might also cause it to fail. This only applies to spaces in the JDK installation.

        Attachments

        1. XMLBEANS-230.patch
          1 kB
          John Sisson

          Activity

            People

            • Assignee:
              radup Radu Preotiuc
              Reporter:
              atehrani Abraham Tehrani
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: