configure run in eclipse for Scala

后端 未结 14 1736
自闭症患者
自闭症患者 2021-01-30 16:03

I am a beginner in Scala. I installed Scala IDE in eclipse and now I want to run my application programme. It never shows \"run as Scala application\", instead it shows \"run

14条回答
  •  猫巷女王i
    2021-01-30 16:50

    Try to run the eclipse command of the sbt tool inside your project directory, this will build your scala project for the eclipse IDE. Then you will have no problem to configure your run configuration, It might even be done for you automatically.

        $ sbt
        > eclipse 
        [info] About to create Eclipse project files for your project(s).
        [info] Updating {file:/...path-to-your-project}root...
        [info] Resolving jline#jline;2.12.1 ...
        [info] Done updating.
        [info] Successfully created Eclipse project files for project(s):
        [info] your-project-name
    

    done! now import your project into Eclipse's workspace

提交回复
热议问题