Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InteliJ Idea in WSL2 error : export: ProgramFiles(x86): bad variable name

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.

like image 848
Nowa Concordia Avatar asked May 21 '26 23:05

Nowa Concordia


2 Answers

I don't know if you get the answer already, please uncheck your "include system environment variables" and save, it should works. enter image description here

like image 95
Gary Liu Avatar answered May 24 '26 19:05

Gary Liu


Disabled EnvFile plugin, I resolved this problem.

like image 25
Keisuke Miyaushiro Avatar answered May 24 '26 19:05

Keisuke Miyaushiro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!