Opened 14 years ago
Closed 14 years ago
#8 closed task (fixed)
Build jaxp
Reported by: | dmik | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | RC |
Component: | general | Version: | |
Severity: | Keywords: | ||
Cc: |
Description (last modified by )
Build the JAXP (Java API for XML Processing) component (make jaxp).
Change History (10)
comment:1 by , 14 years ago
Description: | modified (diff) |
---|
comment:2 by , 14 years ago
Milestone: | Beta → Core |
---|
comment:3 by , 14 years ago
Just for the record, JAXP starts to be necessary since the java\util\XMLUtils.java source (not a surprise).
comment:4 by , 14 years ago
Unfortunately, I can't build JAXP with JDK 1.5.07 on OS/2 -- it gives me this somewhere during the build process:
build: [javac] Compiling 1876 source files to D:\Coding\javaos2\openjdk\jaxp\build\classes [javac] An exception has occurred in the compiler (1.5.0_07). Please file a bug at the Java Developer Connection (ht tp://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the followi ng diagnostic in your report. Thank you. [javac] java.lang.NullPointerException [javac] at com.sun.tools.javac.parser.Scanner.makeByteBuffer(Scanner.java:255) [javac] at com.sun.tools.javac.parser.Scanner.<init>(Scanner.java:238) [javac] at com.sun.tools.javac.parser.Scanner$Factory.newScanner(Scanner.java:72) [javac] at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:254) [javac] at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:281) [javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:398) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:592) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:544) [javac] at com.sun.tools.javac.Main.compile(Main.java:67) [javac] at com.sun.tools.javac.Main.main(Main.java:52)
I will try to import JAXP from the OpenJDK 6 Windows build that I have made some moths ago.
comment:5 by , 14 years ago
Crappy REXX. It stupidly interprets in the middle of the argument as a comment character and discards the rest of the string which completely breaks ant (where ant.cmd is used as a launcher) since we need to pass URLs to it. Crap-crap-crap.
comment:6 by , 14 years ago
Ah, I now recalled that it may be solved system-wide by switching from Classic REXX (which is the default) to Object REXX using SWITCHRX.CMD. Very good. I'll put this to README as a requirement.
comment:7 by , 14 years ago
Obviously, the JDK import mechanism is not working; I can't find a way to cause it to take the built JAXP classes from a different place for the JDK compile stage. Will have to dig more into these cumbersome makefiles.
comment:8 by , 14 years ago
Okay, found the reason. A (single) file named "components_imported" is used as a flag whether the components should be imported or not. However, this file doesn't depend on anything so once it is created, make always think that the necessary stuff is imported regardless of whether it is actually is or if there are any updated files and so on.
The solution is to either delete this file manually or run the clean (!) target.
Anyway, JAXP is being imported now.
comment:9 by , 14 years ago
Milestone: | Core → Beta |
---|
We need JAXP to build JDK.
There are two options:
Taking into account that our bootstrap JDK is 1.5 (which contains a little bit older version of JAXP) I will start with the second way. More over, the OpenJDK 7 guys do it too.