This tutorial uses IntelliJ IDEA 14.1.3 version.
Prerequisites:
You should install Java and Scala first.
(1) Install Scala plugin
:
a) After installing IntelliJ IDEA
successfully, we need to install Scala plugin
first: In the welcome window, select Configure
-> Plugins
:
b) Select “Install JetBrains Plugin...
“:
c) If your computer needs proxy
, please click “HTTP Proxy Settings
” to configure proxy, else ignore it:
d) Select Scala
plugin, and click Install plugin
to install it:
The installing progress is like this:
e) After installation, restart IntelliJ IDEA
:
(2) Create Scala
project:
a) Select “Create New Project
“:
b) Select “Scala
” -> “Scala
“, then click Next
:
c) Select a valid name for project and a folder to store project files:
d) Fill Project SDK
with JDK
directory:
After selection, click “OK
“:
e) For Scala SDK
, click “Create
“. It will display the installed Scala
, click “OK
“:
f) Click “Finish
“:
(3) Create Scala
application:
a) Select src
-> New
-> Scala Class
:
b) Select object
as Kind
value:
c) Write a simple “Hello World
” program:
d) Select Run
-> Run:
e) Select HelloWorld
:
f) The application outputs “Hello World!
“:
All is OK now!
thanks – got me up and running
Thanks a ton for this description.. It is so helpful for the beginners
Thanks a lot)
hi All,
I followed your scenario, but I am getting error which is:
\\
com.intellij.diagnostic.PluginException: Bad type on operand stack
Exception Details:
Location:
com/googlecode/sca4idea/SCAProjectComponent.(Lcom/intellij/openapi/project/Project;)V @18: invokespecial
Reason:
Type ‘com/intellij/psi/impl/source/resolve/reference/ReferenceProvidersRegistry’ (current frame, stack[3]) is not assignable to ‘com/intellij/psi/PsiReferenceRegistrar’
Current Frame:
bci: @18
flags: { }
locals: { ‘com/googlecode/sca4idea/SCAProjectComponent’, ‘com/intellij/openapi/project/Project’ }
stack: { ‘com/googlecode/sca4idea/SCAProjectComponent’, uninitialized 10, uninitialized 10, ‘com/intellij/psi/impl/source/resolve/reference/ReferenceProvidersRegistry’ }
Bytecode:
0x0000000: 2ab7 0010 2a2b b500 122a bb00 1459 2bb8
0x0000010: 001a b700 1db5 001f b1
[Plugin: SCA Support]
\\
I am not able to under stand this.
Your help would be much appreciated.
It seems this issue is related to IntelliJ plugin, maybe you may try to get help from IntelliJ team, thanks!
Very much useful for newbies, thank you so much..
Very helpful indeed foe beginners. I spent hours at other websites just to get this kind of a kick start.
Good that someone has put it so nicely here.