I understand the change from javax packages to jakarta packages. I'm not trying to do any binary retrofitting or anything. I simply want to change my source file import statements, recompile, and be done with it. But after changing to the Java 23 compiler, I can't get either one of the package import statements to work. I have spent most of a day trying to figure this out. I'm getting a lot of mixed messages from google and forums about whether I need to download some sort of jakarta package now in addition to the java jdk. But the general consensus is that simply installing Java 23 and jakarta imports should work. But so far, no. I reduced this down to a command line compile of a java file with an import javax line and an import jakarta line. Both fail. I understand the javax failing with Java 23. But what have I done that is preventing the new jakarta import line from succeeding?
[S:\Repositories\test]javac Test.java
Test.java:2: error: package javax.json does not exist
import javax.json.*;
^
Test.java:3: error: package jakarta.json does not exist
import jakarta.json.*;
^
2 errors
[S:\Repositories\test]javac --version
javac 23.0.2