如何在 Atom 编辑器中运行 Java 程序? [英] How can I run a Java program in Atom editor?

查看:65
本文介绍了如何在 Atom 编辑器中运行 Java 程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了一个脚本包,以便能够在 Atom 编辑器中运行 Java 程序.但我仍然无法运行它.收到以下错误消息:

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:

'bash' 不是内部或外部命令,可操作程序或批处理文件

'bash' is not recognized as an internal or external command, operable program or batch file

这里可能缺少什么?

我使用的是 Windows 7.相同的编辑器和相同的包在 Ubuntu 上运行没有任何问题.

I am using Windows 7. The same editor and same package runs on Ubuntu without any issues.

推荐答案

  1. GitHub 站点获取 GitHub Desktop.运行安装程序以完成.
  2. Atom 站点获取 Atom Windows 安装程序 AtomSetup.exe.
  3. Atom 安装完成后,它就会启动.
  4. 从包菜单,导航到设置视图".单击子菜单项安装包/主题".
  5. 在搜索文本框中键入脚本",然后按 Enter.
  6. 在搜索结果中查找名为script"的包(在 Atom 中运行代码),然后单击结果窗格中的安装按钮.
  7. 安装软件包后,创建一个 Java 文件并单击 Ctrl+Shift+B 以运行它.
  1. Get GitHub Desktop from GitHub Site. Run the installer to complete.
  2. Get Atom Windows installer AtomSetup.exe from Atom Site.
  3. Once Atom installation completes, it launches.
  4. From Package Menu, Navigate to "Settings View". Click on the sub menu item "Install Packages/ Themes".
  5. Type "script" in the search text box, hit Enter.
  6. Look for a package named "script" (run code in Atom) in the search result and click on install button in the result pane.
  7. Once the package is installed, create a Java file and click Ctrl+Shift+B to run it.

PS -

  1. GitHub Desktop 是 Windows 环境的必备先决条件.
  2. 两个安装程序的大小都超过 100 MB,因此可能需要一些时间.

这篇关于如何在 Atom 编辑器中运行 Java 程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆