Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1707

Unable to build xercesImpl.jar with java 11

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.12.0
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
      None

      Description

      I'm unable to build xercesImpl.jar with Java 11 even if I set source and target version:

      > ant -v -d -Dant.java.version=1.8 clean jar
      ...
         [xjavac] Fatal Error: Unable to find package java.lang in classpath or bootclasspath

      BUILD FAILED
      /home/tpasch/scm/db-toolchain/submodules/xerces2-j/build.xml:311: Compile failed; see the compiler error output for details.
              at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1425)
              at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1133)
              at org.apache.xerces.util.XJavac.execute(Unknown Source)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
              at org.apache.tools.ant.Task.perform(Task.java:350)
              at org.apache.tools.ant.Target.execute(Target.java:449)
              at org.apache.tools.ant.Target.performTasks(Target.java:470)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
              at org.apache.tools.ant.Main.runBuild(Main.java:834)
              at org.apache.tools.ant.Main.startAnt(Main.java:223)
              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

      The problem seems to be related to xerces own implementation of java compile, i.e. xjavac.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mukul_gandhi Mukul Gandhi
                Reporter:
                aanno Thomas Pasch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: