How can I run a Java program in Atom editor?

后端 未结 3 1463
一向
一向 2020-12-28 19:57

I installed a scripts package to be able to run a Java program in Atom editor. But I\'m still not able to run it. Getting the following error message:

3条回答
  •  情歌与酒
    2020-12-28 20:53

    Main reason for this issue is scripts package is NOT built for cross-platform. "bash" won't be recognised on Windows. But we have following workarounds to make it work.

    It works with following modifications:

    • Ensure Java path is appended to PATH variable in environment variables.
    • Since I am using git, I had installed git bash in my windows system.
    • Set the git bash path in environment variables.

    Now, able to run Java from atom editor. :)

    As suggested in other forums, Cygwin could be other better alternative to get bash.

提交回复
热议问题