how to solve javax.xml.namespace is accessible from more than one module with jdk11 - java-11

I have updated my java project from jdk8 to jdk 11 and I face the following error:
javax.xml.namespace is accessible from more than one module

Related

No result for PATH:"/" in Alfresco Node Browser

I am using Alfresco Community v6.0.7.
When I try to query the default path by searching just PATH:"/" in the Node Browser of Alfresco Share, I get No results and 07100085 is displayed at the Name column in the grid below.
Can anyone tell me what could be causing this issue and where do we declare the app:company_home property?
Issue solved. I tried running Solr search services using following command
./solr/bin/solr start -a "-Dcreate.alfresco.defaults=alfresco,archive"
It did not give any error on the console, but when I checked Solr logs it was throwing error.
ERROR (main) [ ] o.a.s.c.SolrCore null:java.lang.UnsupportedClassVersionError: org/alfresco/error/AlfrescoRuntimeException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
This was because I was running JDK on the machine whereas Alfresco Search Services 1.4 requires JDK 11. After upgrading to JDK 11 both core and archive got created and I was able to run queries again in the Node Browser.

chirp-react-native run-android failing for Java 11 and 12?

Tried to build chirp-react-native with Java 12 and Java 11. Will not build.
If I drop down to Java 1.8 AND set my gradle distributionUrl to gradle-4.8-all.zip in chirp-react-native/android/gradle/wrapper/gradle-wrapper.properties, the package compiles and installs correctly and I think it runs correctly.
However if it's an easy fix I'd prefer to use a current JDK. Has anyone successfully built chirp-react-native using Java 12?
Steps to reproduce:
With Java 12 set in my JAVA_HOME env variable (/Library/Java/JavaVirtualMachines/jdk12-0.1.jdk)
react-native run-android fails with this error:
Could not determine Java version from 12.0.1
If I drop down to Java 11 as JAVA_HOME, I get a similar error message:
Could not determine Java version from 11.0.3
With Java 1.8 and Gradle 4.8, everything appears to build, install and run properly.
This comment describes the reason for this error - https://github.com/facebook/react-native/issues/22487#issuecomment-443759776
You might be able to upgrade the gradle version in the android/build.gradle file.
Can you try to run ./gradlew build from the command line and check for additional log messages in console? It might be that there are some missing dependencies required by your project. What is happening if you remove ChirpSDK from the project? Can you build it with Java 11/12 and without ChirpSDK?

Error in adding the Apache CFX run time in eclipse

I am newbie to web services. i am trying to generate stubs using Apache CFX on eclipse. when i try to add CFX in preferences using Windows >> Preference eclipse gives error "Invalid Type Name". i tried to change the JRE from JDK 6 to 7. change the versions of CFX but still problem persists.
Please help in resolve the problem
I found the solution. The problem because of multiple java version installed on my machine and CFX found two different versions of JAXB. I uninstalled java 7 from my machine and then it worked with java 6.

Intellij IDEA: Unable to compile java code

Whenever I try to compile/run a java code I get the following.
Compilation completed with 1 error and 0 warnings in 2 sec
1 error
0 warnings
java: Cannot find JDK '1.6' for module 'balh' <= ERROR
The SDK path is set and selected in "Project SDK"
I'm using IDEA 12 on RHEL 6.2
Thanks.
Ensure that your dependencies include Java 1.6 in that specific module.
Here, my module SDK is Java 1.7, but it's the same idea - if Java 1.6 doesn't appear or isn't available, either use the project SDK or find it on your box using the "New" dialog.

"Unsupported major.minor version 51.0" in Netbeans

I know that the title is almost identical to other questions, but, I've not been able to resolve my problem with those answers.
This is the problem:
I have 2 almost identical projects (one has been cloned from the other with mercurial) and some changes have been made.
After the last pull from the original project, the following error appears when I try to run the project. I know that means that the project is being compiled with java7 and run with java6.
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/[...]/Start : Unsupported major.minor version 51.0
The original project keeps running normally.
It runs if I change the Java Platform in the project properties to java7, but I need the project to run on java6, so that's not an option.
Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.6.0_35; Java HotSpot(TM) 64-Bit Server VM 20.10-b01
System: Linux version 3.2.0-32-generic running on amd64; UTF-8; en_US (nb)
Thanks for your help!
You can add more than 1 jdk to your environment and you can decide which one to use. try to add the jdk 6 and compile it based on that.