I made a simple Java project with the console message "Hello world". Before I created it, I set its JDK to 11.
I wanted to test JDK 16, so I changed it in project structure. After I ran my program, what I get is "cannot determine path to 'tools.jar' library for 16".
Can someone tell me why I can't play around with different JDKs after the program is set up? Does it mean it's stuck forever with JDK 11?
You probably have to register your installed JDK 16 with IntelliJ and offhand I don't know the process for that, only for Eclipse.
Note, however that there are two different ways to set the JVM version level. One is to change the setting of the project to use a given level for compiling and running, the other is to install alternative JVMs. You'd need to do the second if you wanted a Java version higher than any of the JVMs already defined to your copy of IntelliJ.
Bjoke: A "Bully Joke". A Statement or action made with malicious intent - unless challenged. At which point it magically transforms into "I was just funnin'" or "What's the matter, can't take a joke?"
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop