ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Minion (https://www.esoui.com/forums/forumdisplay.php?f=183)
-   -   Minion 3.0.5 Java won't start in Linux (https://www.esoui.com/forums/showthread.php?t=9025)

mercster 03/09/20 04:16 PM

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.

mercster 03/09/20 05:57 PM

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

:banana:

geverwills 09/28/20 12:21 AM

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.


All times are GMT -6. The time now is 09:06 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI