Jez
Jez

Reputation: 23

Can't run JavaW

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 /?

Upvotes: 1

Views: 302

Answers (1)

Jez
Jez

Reputation: 23

As user85421 commented, it is normal behaviour based on the javaw documentation:

The javaw command is identical to java, except that with javaw there's no associated console window. Use javaw when you don't want a command prompt window to appear. The javaw launcher will, however, display a dialog box with error information if a launch fails.

Upvotes: 1

Related Questions