configure run in eclipse for Scala

后端 未结 14 1726
自闭症患者
自闭症患者 2021-01-30 16:03

I am a beginner in Scala. I installed Scala IDE in eclipse and now I want to run my application programme. It never shows \"run as Scala application\", instead it shows \"run

14条回答
  •  悲哀的现实
    2021-01-30 16:37

    Following are the steps that I took to successfully run scala(Ubuntu) on eclipse:
    1. Download Scala IDE
    2. After installation, create a maven project.
    3. right click on the project, go to configure and "Add Scala Nature"
    4. In the .pom I provided the following dependencies:

        
    
        org.apache.spark
        spark-core_2.12
        2.4.1
    
    
        
    
        org.apache.spark
        spark-sql_2.12
        2.4.1
    
    
    
    
        org.apache.spark
        spark-graphx_2.12
        2.4.1
    
    
    1. Ensure that src/main/scala is on the build path.
    2. Create a scala file to test your project.

    Hope this helps!!!

提交回复
热议问题