Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Andreas Leitgeb Newsgroups: comp.lang.java.programmer Subject: Re: more porting issues to Java 11 Date: Thu, 4 Apr 2019 12:52:44 -0000 (UTC) Organization: A noiseless patient Spider Lines: 39 Message-ID: References: Reply-To: avl@logic.at Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 4 Apr 2019 12:52:44 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="e62b29e720dbf7aab24875ead4725a5d"; logging-data="9688"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4fmPM1ZCIqEYg86HPbir4" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:OXRzlJUIIBJVMEEpfsjX/S1ZTwY= Xref: csiph.com comp.lang.java.programmer:38860 Arne Vajhøj wrote: > On 4/3/2019 2:28 PM, Arne Vajhøj wrote: >> On 4/3/2019 1:21 PM, Andreas Leitgeb wrote: >>> My application unfortunately uses a couple of features that were removed >>> in Java 11. >>> One, of which I was a bit more optimistic of finding a substitute was the >>> package hierarchy javax.xml.bind  and in particular (among others) the >>> classes >>>    JAXBContext, Marshaller and Unmarshaller >>> therein. >> I go to: > https://github.com/eclipse-ee4j/jaxb-ri > https://github.com/eclipse-ee4j/jaxb-ri/releases/download/2.3.2-RI/jaxb-ri-2.3.2.zip Thanks, they did indeed contain the sought classes. For a short time it even looked like I'd be getting on, until... after adding all the jars from jaxb-ri-2.3.2, Eclipse still didn't find some other classes e.g. org.w3c.dom.Document . I scanned local repositories for jar-files containing that class and found some "xml-apis-1.4.01.jar" - it doesn't matter where it was from and how old it was, because the gist of my problem doesn't involve it.) After adding that jar file it *no longer* knew other stuff like javax.xml.namespace.NamespaceContext, so I removed the jar again, and looked for where it had found javax.xml.namespace.NamespaceContext before: in jdk-11 module "java.xml" - and this very module has "org.w3c.dom.Document" sitting there as well! Now, the new question driving me crazy is: why doesn't eclipse find org.w3c.dom.Document, when it perfectly well can find javax.xml.namespace.NamespaceContext almost right next to the other, and why doesn't it find javax.xml.namespace.NamespaceContext anymore once I add a jar file with org.w3c.dom.Document ?.