To install Java on Linux Mint, the easiest and most stable approach is to use the built-in apt package manager. For most users, OpenJDK (the open-source implementation) is highly recommended over Oracle's closed-source version because it is native, secure, and updates automatically through your system.
Before installing any software, ensure your package index is fully up to date:
optionally
Depending on what you want to do with Java, you will need either the JRE (to run apps) or the JDK (to develop apps).
Note: The following automatically installs the standard, stable OpenJDK version optimized for your specific Linux Mint release.
Confirm that Java was installed correctly by checking its version number:
To install default_jdk...
THIS ERROR WAS DISPLAYED WHEN I TRIED TO RUN RAS1_6.JAR AFTER
INSTALLING DEFAULT_JDK AND DOUBLE-CLICKED ON THE JAR FILE
...for security reasons running the file '/home/tom/risc-v/ras1_6.jar' has been blocked.
to run it, I could do the following...
to make it behave like a standard executable (run when double clicked)