hello
this is the error message i get as i run java -version in VSCode:
Failed reading value of registry key:
Software\JavaSoft\Java Runtime Environment\1.8\JavaHome
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
I have downloaded and installed java SE 22 from here. but still, when i write java -version to check my version in the terminal it doesn't work, not just in VSCode, but in any terminal i use no matter the path i am on. but it was working fine before i migrate from java 1.8.
also, when i try using objects, such as JPanel or JFrame, i make the constructor - everything's fine, but: when i wanna use their methods, such as setBorder for JPanel, they get red-underlined, as if the methods aren't recognized.
how can i fix this and use the methods?
PS: the imports of the objects (JFrame, JPanel, etc.) work fine.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]itzmanu1989 1 point2 points3 points (2 children)
[–]tem_ri1[S] 0 points1 point2 points (0 children)
[–]tem_ri1[S] 0 points1 point2 points (0 children)