Using MASON and IntelliJ
22 January 2019
It turns out that all guides to setup MASON with a decent IDE are very old. The MASON manual doesn’t bother with this, either. Therefore here’s an updated version using IntelliJ.
Assuming here you have installed IntelliJ and Java JDK.
- Create a new project, and let it be a “Java” project.
![](/assets/intellij/1.png)
Do not select any template
![](/assets/intellij/2.png)
give it a name (mason-test
here)
![](/assets/intellij/3.png)
you should have now an empty project
![](/assets/intellij/4.png)
- Create a new directory in
mason_test
![](/assets/intellij/5.png)
call it lib
![](/assets/intellij/6.png)
put the mason.jar
file in that directory
![](/assets/intellij/7.png)
- Go file->Project Structure
![](/assets/intellij/8.png)
Go to libraries, press the +
sign and choose Java
![](/assets/intellij/9.png)
Point it to the lib
folder you created before (where mason.jar
is)
![](/assets/intellij/10.png)
Confirm that you want that folder to be a library folder for the project/module
![](/assets/intellij/11.png)
- Start coding; create a new java class by right clicking on src–>Java Class
![](/assets/intellij/12.png)
Write down your Students.class
![](/assets/intellij/add.png)
Right click on its tab and press “run”
![](/assets/intellij/13.png)
Should see it running at the bottom
![](/assets/intellij/14.png)