Blog

Running an IntelliJ IDEA Java .class file in a Ubunu Linux 17.10 terminal

Notice the path to Main.class in the IntelliJ environment. In order to run Main.class from a terminal, you must navigate to:

~/Desktop/ud282-master/ContactManagerApplication2/out/production/ContactManagerApplication2

and issue command:

java  com.company.Main

notice Main.class is located here:

anne@Inspiron-15R:~/Desktop/ud282-master/ContactManagerApplication2/out/production/ContactManagerApplication2/com/company