I have a JavaFX project with two classes and one external library. When I run it from IDE (IntelliJ Idea) - everything works well. But when i run it from command line using command:
java Main
the program starts, but when I try to use the functionality associated with the external library, i have an exception:
Exception in thread "Thread-4" java.lang.NoClassDefFoundError: com/google/gson/Gson
Why does everything work well when I run it through IDE, and when I run it through the console, it stops seeing the library Gson?