You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Sourabh Dige (JIRA)" <xe...@xml.apache.org> on 2014/06/13 20:43:03 UTC

[jira] [Commented] (XERCESJ-1621) xerces2 doesn't build with Mac OS 10.9 and JDK 1.7

    [ https://issues.apache.org/jira/browse/XERCESJ-1621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14030980#comment-14030980 ] 

Sourabh Dige commented on XERCESJ-1621:
---------------------------------------

The Issue here is that Xerces supports DOM Level 1 HTML Specification only. However the JDK installed on your system which is 1.7 has DOM Level 3 specification. The newly added methods from Level 2 and Level 3 specification in JDK 1.5 and onwards are not implemented in Xerces. So one of the options is to build the code with older version i.e JDK 1.4 etc or work around fix would be to add dummy method implementations in the source so that you don't get error's for not implementing them. I tried and it worked for me. 

> xerces2 doesn't build with Mac OS 10.9 and JDK 1.7
> --------------------------------------------------
>
>                 Key: XERCESJ-1621
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1621
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 2.11.0
>         Environment: Mac OS 10.9; JDK 1.7
>            Reporter: Johnny Wu
>              Labels: Xerces2, jdk1.7, mac
>
> While compiling Xerces2, I got this error (the same error reported on XERCESJ-1413)
> Xerces-Java Build System
> ------------------------
> Building with classpath /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/lib/classes.zip:./tools/ant.jar:./tools/ant-nodeps.jar:./tools/ant-launcher.jar:./tools/ant-junit.jar:./tools/xml-apis.jar:./tools/xercesImpl.jar:./tools/bin/xjavac.jar
> Starting Ant...
> Buildfile: build.xml
> init:
>      [echo] ---------------- Xerces-J 2.11.0 [1999-2010] ---------------
> prepare:
> prepare-common:
> prepare-src:
>     [unzip] Expanding: /Users/jwu/Downloads/xerces-2_11_0/tools/xml-commons-external-src.zip into /Users/jwu/Downloads/xerces-2_11_0/build/src
> compile:
>    [xjavac] Compiling 596 source files to /Users/jwu/Downloads/xerces-2_11_0/build/classes
>    [xjavac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
>    [xjavac] /Users/jwu/Downloads/xerces-2_11_0/build/src/org/apache/html/dom/HTMLFrameElementImpl.java:28: error: HTMLFrameElementImpl is not abstract and does not override abstract method getContentDocument() in HTMLFrameElement
>    [xjavac] public class HTMLFrameElementImpl
>    [xjavac]        ^
>    [xjavac] /Users/jwu/Downloads/xerces-2_11_0/build/src/org/apache/html/dom/HTMLIFrameElementImpl.java:28: error: HTMLIFrameElementImpl is not abstract and does not override abstract method getContentDocument() in HTMLIFrameElement
>    [xjavac] public class HTMLIFrameElementImpl
>    [xjavac]        ^
>    [xjavac] /Users/jwu/Downloads/xerces-2_11_0/build/src/org/apache/html/dom/HTMLObjectElementImpl.java:28: error: HTMLObjectElementImpl is not abstract and does not override abstract method getContentDocument() in HTMLObjectElement
>    [xjavac] public class HTMLObjectElementImpl
>    [xjavac]        ^
>    [xjavac] Note: Some input files use or override a deprecated API.
>    [xjavac] Note: Recompile with -Xlint:deprecation for details.
>    [xjavac] Note: Some input files use unchecked or unsafe operations.
>    [xjavac] Note: Recompile with -Xlint:unchecked for details.
>    [xjavac] 3 errors
>    [xjavac] 1 warning
> BUILD FAILED
> /Users/jwu/Downloads/xerces-2_11_0/build.xml:311: Compile failed; see the compiler error output for details.
> Total time: 8 seconds



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org