I recently downloaded and unziped openJdk 14
I then went to Eclipse > Java > Installed JREs and set the new jdk to be used

However after doing this I am no longer able to run my server (tomcat webapp) I get an error from the jdk
as well as a generic error in eclipse saying it failed to start
When googling around it said to check my paths, but as far as i can tell they are correct:
(user variable)
%JAVA_HOME% = C:\JavaProgramFiles\jdk-14.0.2
(system & user variable)
Path %JAVA_HOME%\bin
Update 1 (FYI removed some path stuff as it doesnt seem relevant anymore):
thanks @KunLun
when cd'ing into the bin directory, javac -version worked. I reviewed environment variables again and this time added %JAVA_HOME%/bin to my User's Path variable (previously it was only in system path). So now javac -version works from any directory. However Eclipse still has same error when i start my server, though i do get this new msg in the console?
-Djava.endorsed.dirs=C:\JavaProgramFiles\tomcat\apache-tomcat-9.0.21\endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules.


%JAVA_HOME% = C:\JavaProgramFiles\jdk-14.0.2- looks wrongJavaProgramFiles. In your Environment Variable is like that? - KunLuncd C:\JavaProgramFiles\jdk-14.0.2\bin, then executejavac -version. If it works, means is something wrong at variable - KunLun