2014年9月13日 星期六

Intellij scala

1. down load intellij 

2. install scala plugin

  • open intellj
  • select   ->   Configure  ->  Plugins
  • search scala
  • install plugin


3. install sbt plugin

  • Configure -> Plugins
  • search sbt
  • install plugin
5. create scala project
  • Create New Project
  • Scala -> SBT
  • Enter Project Name

Note :  if  your sbt  console  has  error  message
           
      Error  :  Cannot determine Java VM executable in selected JDK

      Resolve :
  • Configure -> Project defaults -> Project structure and add the jdk.
  • Configure -> Preferences -> IDE Settings -> Scala  andd the jdk.
  • File -> Project structure  add the jdk.

             JDK  Patch :
              /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home




reference document :