Thread Tools Display Modes
03/09/20, 04:16 PM   #1
mercster
Join Date: Sep 2018
Posts: 4
Unhappy Minion 3.0.5 Java won't start in Linux

Hey folks,

I'm running Ubuntu 19.10 and I have Oracle Java 13 installed:

merc@quanta:~$ java -version
java version "13.0.2" 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)

And I get this common error:

merc@quanta:~/minion$ java -jar ./Minion-jfx.jar
Error: Could not find or load main class gg.minion.Minion
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

Often when someone gets this error, it means they don't have the lib/ directory in the right place. But I do:

merc@quanta:~/minion$ pwd
/home/merc/minion
merc@quanta:~/minion$ ls
lib/ Minion-jfx.jar

If anyone could help me out, I would appreciate it.
  Reply With Quote
03/09/20, 05:57 PM   #2
mercster
Join Date: Sep 2018
Posts: 4
Thumbs up Solved

Minion won't run with JDK/JRE 10/11/13/etc. You need Oracle Java 8.

Follow the directions here:

https://askubuntu.com/questions/1136...active#tab-top

  Reply With Quote
09/28/20, 12:21 AM   #3
geverwills
Join Date: Sep 2020
Posts: 1
While executing, when JVM does not find a .class file with the specified name then a run time error occurs saying “Could not found or load main class”. The reason why this happens is mostly due to:
  • Wrong Class Name
  • Invalid Classpath
  • Wrong package

Main class could not be found when there is typo or wrong syntax in the fully qualified java class name or it does not exist in the provided classpath. You must ensure that you add the location of your .class file to your classpath. So, if its in the current folder, add . to your classpath. Note that the Windows classpath separator is a semi-colon( . If you want to execute the main() method in MainClass, you must use the full class name, including package name, in the java command.
  Reply With Quote

ESOUI » Site Forums » Minion » Minion 3.0.5 Java won't start in Linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off