Alexey Zvolinskiy

About Alexey Zvolinskiy

Alexey is a test developer with solid experience in automation of web-applications using Java, TestNG and Selenium. He is so much into QA that even after work he provides training courses for junior QA engineers.

Scala setup on Mac OS

Not so long time ago I decide to improve my programming skills with a new programming language. As you can see looking on the topic, the new language is Scala. I don’t want to write a lot of paragraphs about Scala advantages which were crucial in my decision. Learning of any programming language starts from setting up of environment.

In this post I’m going to make an overview of Scala installation on Mac OS. Further I will write the same post but applied for Windows. Enough words, let’s continue with practical steps.

  1. Download scala-X.XX.tgz from the official site. When this article was written the version of Scala was 2.10.2
  2. Unzip the archive and rename a folder in “scala”.
    When you browse the scala directory you can find there folders: bin, doc, examples, … etc.
  3. Move the scala folder to /Users/user_name
    In my case it looks like:path-to-scala-folder
  4. Now it’s time to change .profile file. If you don’t have the .profile file you can fix this using the link.So you need to add the following line in the .profile:

    export PATH=”/Users/your_user/scala/bin:$PATH”

  5. To activate this changes you need to reopen Terminal and execute there the following command:source .profile

    apply-changes

That’s all you need to do in order to setup Scala on your Mac. Now let’s develop a first Scala Hello World application. Open Terminal and type there:

scala

After that type:

println(“Hello World”)

Scala-Hello-World

That’s it.
 

Reference: Scala setup on Mac OS from our JCG partner Alexey Zvolinskiy at the Fruzenshtein’s notes blog.

Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

JPA Mini Book

Learn how to leverage the power of JPA in order to create robust and flexible Java applications. With this Mini Book, you will get introduced to JPA and smoothly transition to more advanced concepts.

JVM Troubleshooting Guide

The Java virtual machine is really the foundation of any Java EE platform. Learn how to master it with this advanced guide!

Given email address is already subscribed, thank you!
Oops. Something went wrong. Please try again later.
Please provide a valid email address.
Thank you, your sign-up request was successful! Please check your e-mail inbox.
Please complete the CAPTCHA.
Please fill in the required fields.

Leave a Reply


+ 9 = sixteen



Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

Get ready to Rock!
You can download the complementary eBooks using the links below:
Close