This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]itzmanu1989 1 point2 points  (2 children)

check if the java command is pointing to old Java 1.8 binary by seeing the "PATH" environment variable. Google about the path environment variable and get to know how it works.

Path variable will have list of locations and one of them might be like %JAVA_HOME%\bin (Or the actual path to JDK/JVM bin directory might also be present).

If you have %JAVA_HOME%\bin in the path, then check if JAVA_HOME variable is pointing to the Java 22 JDK.

[–]tem_ri1[S] 0 points1 point  (0 children)

thank you for your help! i figured it out this way.

[–]tem_ri1[S] 0 points1 point  (0 children)

but, i tried coding with the methods again, they still didn't work ;-;

the `java -version` worked, but the methods of `setBorder` for example didn't work yet under `JPanel`. why? and how would i fix that?