Uploaded January 2020 | Updated November 2026, 2 hours ago
Split an application into the model (data) and view (UI). Uses packages and dependency injection for referencing the model from the UI. Creates an object manager class (DoorManager) to store data objects.
Split an application into the model (data) and view (UI). Uses packages and dependency injection for referencing the model from the UI. Creates an object manager class (DoorManager) to store data objects.

![Run Java from Jar: IntelliJ Terminal
How to run a Java program from IntelliJs built-in command line by using a Jar. Demos importing GSON library as an external Maven dependency to show power of a Jar file.
1. New project MyProjectName
Create package
Create MyMain class with main()
2. Setup GSON object
File Project Structure
Libraries (on left)
Click the green +
Select From Maven
Enter: com/google/code/gson:gson:2.8.2
3. Basic main()
public static void main(String[] args) {
// Use GSON:
Gson gson = new Gson();
for (String s : args) {
System.out.println(Args: + s);
}
}
RUN via IntelliJ:
3. Setup JAR
file project structure
artifacts (on left)
green + for new artifact
jar from modules with dependencies
pick the module to use [default likely OK]
choose the main class
4. Command line
java -jar out/artifacts/MyProjectName_jar/MyProjectName.jar Hello world! Run Java from Jar: IntelliJ Terminal](https://i.ytimg.com/vi/YwohEBqglY0/mqdefault.jpg)



![CLion under Linux: Install & Run
Demo of installing CLion IDE (for C/C++ programming) under Linux (specifically Ubuntu).
To run clion.sh from a terminal
(if double-clicking on the icon fails):
[1] Press the Windows key to open up the menu in the top-left corner of Ubuntu.
[2] type terminal; run it.
[3] Enter the commands:
cd clion-2016.2.2
cd bin
./clion.sh
- Change the clion-2016.2.2 to match the folder name you extracted)
- That ./ is important in the final command.
- This should launch the installer.
For a video on installing VMWare Player and creating an Ubuntu VM, see http://youtu.be/TXGREvxPbL4
Topics:
- Downloading latest Clion installer via a browser
- Running installer via GUI
- Creating C++ Hello World project in CLion
- Import multiple existing C++ files.
- Excluding files from the build.
If double clicking on clion.sh shows you the contents, then right-click and select Open With, then Other Applications... and click View All Applications and select Run Software. CLion under Linux: Install & Run](https://i.ytimg.com/vi/_fs0P7qoQKg/mqdefault.jpg)




