First install the required your favorite JDK on your computer such as Oracle Java, OpenJDK or IBM Java. If you don’t have any, please follow the below below link to install Oracle JDK 8 on Linux Mint.
In this tutorial we are going to work manually with Java programming without the use of an IDE.
Open Terminal. To open terminal click the Main Linux Mint Menu, then go to system tools and select Terminal or type terminal in the search field or click the Terminal icon in taskbar.