- This topic has 5 replies, 2 voices, and was last updated 5 years ago by Brian Fernandes.
-
AuthorPosts
-
gcriderParticipantI just updated to the latest version, and it apparently is using JDK 13. I am still compiling against JDK 11. I have removed everything except my JDK 11.0.5 from the installed JREs. In addition, I have explicitly set my installed JDK 11.0.5 as the Execution Environment for JavaSE-11. In spite of all of this, my code is still being compiled with the JDK 13 that comes with MyEclipse. This is causing Java Class Version errors when running under Tomcat (which also uses JDK 11.0.5).
Is this an error wth MyEclipse? What configuration setting am I missing?
Thanks
gcriderParticipantOkay, never mind. For some unknown reason, it’s working properly now. It’s a Christmas miracle.
Brian FernandesModerator🙂 Glad it’s working because you had clearly done all the right things! Please let us know if you run into the issue again.
gcriderParticipantOkay, this problem has reoccurred. I had removed the JDK 13 (the stock JRE that myeclipse installs) from the list of available JREs. After restarting myeclipse, the JDK 13 reasserted itself in the list of installed JREs. It is not selected. My JDK 11.0.5 is selected. However, when I run an ant build, it runs ant with the JDK 13. This leads to the class version errors.
Really need to get a handle on this.
Thanks
Brian FernandesModeratorThe reason the JDK 13 re-appears is because this version of MyEclipse runs on Java 13.
There are two ways in which this can be fixed.
1) If you bring up the External Tools launch configuration (see screenshot), on the JRE tab you should be able to explicitly choose your Java 11 VM. It may not have been set to use the workspace default, which is why it’s using Java 13.
2) Shut down MyEclipse and edit your
myeclipse.ini
file. Change the-vm
argument and point it to the same file from a Java 11 installation. This will force MyEclipse to start with Java 11 and it should essentially behave the same as before.Please let us know if these help.
Attachments:
You must be logged in to view attached files.
gcriderParticipantThank you Brian. This is helpful. Your step (1) is confirming what I’ve started to do as my work around. I’ll go and update the configs for all of my builds.
Thanks again.
-
AuthorPosts