Yesterday, I installed JDK 22. And when I try to run javaw nothing happens. (Everything else works fine though) No error, no anything. Though, when I do echo %errorlevel%
I still get error code 0.
I tried almost everything, reinstalled JDK, double-checked PATH, asked ChatGPT, you get it. Though, all of my attempts changed nothing.
> javaw
> echo %errorlevel%
0
> javaw --help
> javaw /?
As user85421 commented, it is normal behaviour based on the javaw
documentation:
The
javaw
command is identical tojava
, except that withjavaw
there's no associated console window. Usejavaw
when you don't want a command prompt window to appear. Thejavaw
launcher will, however, display a dialog box with error information if a launch fails.