I'd like to try out the jdk 21 features. Preferably in intellij. I've downloaded the java21 jdk but I can't get intellij to recognise jdk21 code (I'm using string templates). I'm happy to use the command line if intellij isn't an option yet, but javac on the command line also complains about the string template features.
This is how I'm attempting to compile my test code:
'E:\development\java\jdk21\jdk-21\bin\javac.exe' .\src\Main.java --enable-preview --release 21
#jdk21
3 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @median tundra! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.