Install Scala IDE in Eclipse
Open Eclipse. Help -> Eclipse Market Place…
Search for Scala IDE.
Click on Install button under Scala IDE 4.7.X.
Use default selection and click on Confirm button.
Once the installation is successful, restart Eclipse.
Create a new scala project
Open Eclipse. File -> New -> Other.
Select Scala Project and click on Next button.
Give the project name as ‘hello-scala’ and click on the Finish button.
Scala project structure looks like below.
Create new worksheet
Open Eclipse. File -> New -> Other.
Search for scala and select ‘Scala Worksheet’, click on Next button.
Select the project ‘hello-scala’ and give the worksheet name as ‘helloworld’ and click on Finish button.
helloworld.sc worksheet created with the above content. Now whatever you experiment on worksheet, statements are immediately get executed once you save the worksheet and you can see the result in the same worksheet.
No comments:
Post a Comment