0

I'm just getting started with scala, and im using intellij.

I have just installed the plugin with the tool in intellij, and this now works.

But i would like to also maybe run Scala from cmd. Is it necessary for me to download Scala via the browser also? or could I just add scala in intellij to enviorment variables, and have it working?

Dmytro Mitin
  • 48,194
  • 3
  • 28
  • 66
s3j80
  • 143
  • 1
  • 1
  • 9
  • 2
    The Scala plugin checks your code, highlights it, etc. It is not a replacement for the Scala compiler, which generates .class files from your code. So yes, you will have to download Scala. You could also download SBT and use it to build Scala projects. – user Jul 22 '20 at 21:44

1 Answers1

0

I think you can.

Intellij IDEA can install scala plugin with scala sdk and sbt. If you have sbt somewhere, you can find and run it.

I was able to find my installation by opening the existing sbt project, then go to Project structure -> Modules -> sbt there would be the path.

I find myself path like this - jar:file:/C:/Users/UserName/AppData/Local/JetBrains/Toolbox/apps/IDEA-U/ch-0/193.6015.39.plugins/Scala/launcher/sbt-launch.jar

You can start sbt by java -jar sbt-launch.jar.

Artem Sokolov
  • 810
  • 4
  • 8