For better performance, hit to switch to interactive mode, or consider launching sbt without any commands, or explicitly passing ' shell ' Loading global plugins from / home / jrp /.
![sbt install eclipse plugin sbt install eclipse plugin](https://i.imgur.com/PHqyJNL.gif)
Jrp :~/ workspace_1 / SimpleApp $ sbt run Executing in batch mode. With the demonstration shown in this tutorial, you should be able to use sbt as well as Eclipse IDE simultaneously on the same project. I will also cover the steps to integrate sbt with your Scala IDE. In this lesson, I will download, Install and configure Eclipse IDE for Scala. Paste the below content in MainApp.scala and save the file Eclipse is the recommended IDE for your Scala projects. Right click on src/main/scala -> new -> scala objectĬreate input-dirdirectory in the root of project directory in eclipse and put one text file Now Go to eclipse, and import the projectįile -> import -> General (Existing Project into workspace) -> Browse to SimpleApp Folder -> Next -> Finish settings drwxrwxr - x 4 jrp jrp 4096 Jul 2 16 : 59 src drwxrwxr - x 5 jrp jrp 4096 Jul 2 17 : 09 target project drwxrwxr - x 2 jrp jrp 4096 Jul 2 17 : 35. classpath drwxrwxr - x 2 jrp jrp 4096 Jul 2 17 : 07 lib drwxrwxr - x 3 jrp jrp 4096 Jul 2 17 : 08 project - rw - rw - r - 1 jrp jrp 363 Jul 2 17 : 35. cache - main - rw - rw - r - 1 jrp jrp 15033 Jul 2 17 : 35. drwxrwxr - x 3 jrp jrp 4096 Jul 2 17 : 40 bin - rw - rw - r - 1 jrp jrp 132 Jul 2 17 : 08 build. sbt / 0.13 / plugins $ cd / home / jrp / workspace_1 / SimpleApp # run below command jrp :~/ workspace_1 / SimpleApp $ sbt eclipse jrp :~/ workspace_1 / SimpleApp $ ls - la total 80 drwxrwxr - x 8 jrp jrp 4096 Jul 2 17 : 40. sbt and save addSbtPlugin ( "" % "sbteclipse-plugin" % "4.0.0" ) # Go to project directory jrp :~/. Now you can create Scala Project inside Eclipse IDE. Click on install corresponding Scala IDE in search result and install the plugin.
![sbt install eclipse plugin sbt install eclipse plugin](https://1.bp.blogspot.com/-iRHpazTf8fU/WjCZPIpjd6I/AAAAAAAABFk/FrAkzHTaUswJaiS2DodNWTbtB91FVIxswCLcBGAs/s1600/sbt.png)
Open eclipse ide -> Go to Help -> Eclipse Market Place -> Search scala ide as shown in image below. Open build.sbt file and paste below content Using Scala IDE as plugin in Existing Eclipse IDE. The “tree” command is just to show directory structure so far. **For windows, you can run these command using Cygwin terminal or simply “md” command in command prompt for creating directories. sbt ├── lib ├── project ├── src │ ├── main │ │ ├── java │ │ ├── resources │ │ └── scala │ └── test │ ├── java │ ├── resources │ └── scala └── target 13 directories, 1 file jrp :~/ workspace_1 / SimpleApp $ sbt jrp :~/ workspace_1 / SimpleApp $ tree.
![sbt install eclipse plugin sbt install eclipse plugin](https://i.ytimg.com/vi/0e0hGId1aPM/maxresdefault.jpg)
Jrp :~ $ mkdir / home / jrp / workspace_1 / SimpleApp jrp :~ $ cd / home / jrp / workspace_1 / SimpleApp jrp :~/ workspace_1 / SimpleApp $ mkdir - p src / jrp :~/ workspace_1 / SimpleApp $ ls bin src jrp :~/ workspace_1 / SimpleApp $ mkdir lib project target jrp :~/ workspace_1 / SimpleApp $ ls bin lib project src target jrp :~/ workspace_1 / SimpleApp $ touch build.