Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Tycho Build -jdk11, tycho 2.4.0
Tycho Build -jdk11, tycho 2.4.0 [message #1848099] Fri, 19 November 2021 16:07
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 107
Registered: July 2009
Location: korea
Senior Member

I'm going to upgrade from java 1.8 to java 11.
tycho 2.4.0

There's an error as below.
What should I do?
Thanks.

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.4.0:compile (default-compile) on project com.xxxcore: Compilation failure: Compilation failure:
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx/util/Util.java:[45]
[ERROR] import javax.xml.namespace.NamespaceContext;
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] The package javax.xml.namespace is accessible from more than one module: <unnamed>, java.xml
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx/util/Util.java:[225]
[ERROR] xpath.setNamespaceContext(new NamespaceContext() {
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] The method setNamespaceContext(NamespaceContext) in the type XPath is not applicable for the arguments (new NamespaceContext(){})
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx//Util.java:[225]
[ERROR] xpath.setNamespaceContext(new NamespaceContext() {
[ERROR] ^^^^^^^^^^^^^^^^
[ERROR] NamespaceContext cannot be resolved to a type
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx//Util.java:[228]
[ERROR] public String getNamespaceURI(String prefix) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method getNamespaceURI(String) of type new NamespaceContext(){} must override or implement a supertype method
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx//Util.java:[245]
[ERROR] public String getPrefix(String namespaceURI) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method getPrefix(String) of type new NamespaceContext(){} must override or implement a supertype method
[ERROR] /Users/xxx/git/xxx_jdk11/com.xxx.core/src/com/xxx//Util.java:[251]
[ERROR] public Iterator getPrefixes(String namespaceURI) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method getPrefixes(String) of type new NamespaceContext(){} must override or implement a supertype method
[ERROR] 6 problems (6 errors)
Previous Topic:Building RAP from source
Next Topic:Problem with Custom Widget .set()
Goto Forum:
  


Current Time: Thu Jun 20 09:02:22 GMT 2024

Powered by FUDForum. Page generated in 0.03766 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top