DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

使用IntelliJ IDEA编译Scala程序


Step1: File->New Project->Create project from scratch:

Step2: Input project name, and select project type: Java Module

Step 3: Create source directory: use default settings and next;

Step 4: Select Scala as tech used by project, and set scala SDK directory:

Step 5: Create a new Scala Class, which type is Object:

Step 6: Complete the demo code:

Step 7: Run this main method:

And get the result:



Published

Oct 20, 2011

Last Updated

Oct 20, 2011

Category

Tech

Tags

  • IntelliJ IDEA 1
  • Scala 20

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor