Public bug reported: It seems gradle can not work along with openjdk-11 in cosmic:
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/usr/share/java/groovy-all.jar) to method java.lang.Object.finalize() WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release ProblemType: Bug DistroRelease: Ubuntu 18.10 Package: gradle 4.4.1-1 ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12 Uname: Linux 4.18.0-10-generic x86_64 ApportVersion: 2.20.10-0ubuntu13 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Sun Nov 18 11:59:32 2018 InstallationDate: Installed on 2018-04-15 (216 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180414) PackageArchitecture: all SourcePackage: gradle UpgradeStatus: Upgraded to cosmic on 2018-10-20 (28 days ago) ** Affects: gradle (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug cosmic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1803855 Title: Illegal reflective access operation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gradle/+bug/1803855/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs