Modify the source code of our "firstscalaapp" to the following:
Right-click "firstscalaapp" and choose "Run Scala console". The following message is displayed:
This is because we have not set the JDK path for Java. Click "OK" to go to the following view:
In this case, select the "project" option on the left:
In this case, we select "new" of "No SDK" to select the following primary View:
Click the JDK option:
Select the JDK directory we installed earlier:
Click "OK"
Click OK:
Click the following view in the code area:
Run 'firstscalaapp' to run the program:
First, running Scala is slow, as shown in the running result:
"Hello Scala!" is printed successfully !" This string.
This indicates that the program runs successfully.
Step 5: If we want to use a cool black background, you can
File-> Settings-> appearance-> themeSelect darcula:
[Spark Asia Pacific Research Institute Series] the path to spark practice-Chapter 1 building a spark cluster (step 4) (5)