<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 23 Nov 2022 at 13:45, Owen Thomas <<a href="mailto:owen.paul.thomas@gmail.com">owen.paul.thomas@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>My Java project, which uses Gradle 7.4, told me that this version of Gradle is incompatible with Java 18. I had a look <a href="https://docs.gradle.org/current/userguide/compatibility.html" target="_blank">here</a> and was advised to use Java 17. So, I tried to remove Java 18 using "sudo apt remove openjdk-18-jdk" followed by "sudo apt install openjdk-17-jdk". When I run java --version I get the following result:</div><div><br></div><div style="margin-left:40px">openjdk 18.0.2-ea 2022-07-19<br>OpenJDK Runtime Environment (build 18.0.2-ea+9-Ubuntu-222.04)<br>OpenJDK 64-Bit Server VM (build 18.0.2-ea+9-Ubuntu-222.04, mixed mode, sharing)<br></div><div><br></div><div>I have tried to run this in a fresh CLI window, and the results are the same,</div><div><br></div><div>What do I do now?<br></div></div></blockquote><div><br></div><div>I rebooted and found the same problem. How does one make this problem (which shouldn't be a problem) be a problem no more? <br></div></div></div>