I'm getting the error
export: ProgramFiles(x86): bad variable name
when trying to run a java program on WSL2 from IntelliJ Idea. I can't seem to find any log or lead to this error. Any help would be appreciated.
Thanks.
I don't know if you get the answer already, please uncheck your "include system environment variables" and save, it should works.

Disabled EnvFile plugin, I resolved this problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With