@irenyak1 , Looking at this
source = 1.11
and
target release: 1.11 in the error logs,
you must be putting like 1.11 in your POM . sorry i think i didnt make that clear on the Ticket. with java 9 and above , it should be , for example
Like I told you on IRC , I have used <java.version>11</java.version> but it is still failing. please look through the error log here
https://pastebin.com/n9QJP1r4
@mozzy this may not be directly related to my ticket but with openjdk 11 I am not able to run a server or set up one. look at this error log https://pastebin.com/7fpgMs5c
@irenyak1 is that where the server stops to run ??
at this pont >> Custom JDK path:
you seem not have configured properly the system path path variable on you OS.
It may be still pointing to a wrong JAVA version that you dont have installed.
Thats right ,there’s some little backward incopatibility between java 8 and 11.
when i look at this in your logs
[ERROR] /home/irynah/Openmrs-Projects/openmrs-core/tools/src/main/java/org/openmrs/tools/doclet/ShouldTaglet.java:[143,1] error: method does not override or implement a method from a supertype
The Old Doclet API in java 8 was deprecatd and finally removed in java 11, and replaced with another new Doclet API.
This will require some little bit of refactoring some code. You can start a Talk thread about this. I would have done so , but currently i have alot of tasks am handling at the same time. cc @dkayiwa
True, while Oracle will stop providing support and mantainace for oraclejdk 8 and 11 unless the implementation pays for a licence , Red Hat takes on the role to support Openjdk 8 and 11 until June 2023 and October 2024 respectively.
So may be its a good idea to still stick with java 8.
If we wait till 2023 to upgrade , there will be more stuff to fix and will be more painful than now. Also openn jdk 12 will not be the latest by that time . I think its better to start upgrading soon.
If we decide to updrade to java 11, we shall need some code refactoring to be compatible will java 11 and if possible backward compatible will java 8. Simply because , research shows java 8 has been the most used version of java by java clients , considering all the way from java 1 to12
Also do ensure to maintain backwards compatibility with JDK 8. With UgandaEMR we have just completed a migration from JDK 7 & currently have over 1000 sites running, and cannot change for at least another 2 years.
One major change that affects us was the replacement of the Doclet API in java 11 with a new Doclet Api. So we would need to refactor all our code that depended to the old API , to depend on the new Doclet API