简体   繁体   English

通过 IntelliJ 安装时从命令行运行 scala/sbt

[英]Running scala/sbt from command line when it's installed through IntelliJ

So far I have only been using Scala and SBT through IntelliJ.到目前为止,我只通过 IntelliJ 使用 Scala 和 SBT。 But when I try to run the scala or sbt commands in the windows command prompt, it says they can't be found.但是当我尝试在 Windows 命令提示符下运行 scala 或 sbt 命令时,它说找不到它们。 What's the easiest way of running the commands through the console, installing another separate scala installation?通过控制台运行命令、安装另一个单独的 scala 安装的最简单方法是什么? adding the intellij scala version to my path?将 intellij scala 版本添加到我的路径中? Any suggestions?有什么建议么?

  1. Download scala/sbt in a separated path.(Do not install it.)在单独的路径中下载 scala/sbt。(不要安装它。)
  2. Adding the path in the ENV variable.在 ENV 变量中添加路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM