Running on Linux, with IntelliJ IDE project, with Java 8.
Java -version
gives me
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
If I cd
to the folder in which my fooBar.Java is, ideaprojects/fooBar/src/com/company
, and run java fooBar
the output is: Error: Could not find or load main class fooBar
Should I copy the .class in there? Or what am I doing wrong?