asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.89k stars 297 forks source link

Fresh install on linux failed with Error: java.lang.ClassNotFoundException: install4j.com.kodedu.boot.AppStarter #448

Closed marcdexet-cnrs closed 4 years ago

marcdexet-cnrs commented 4 years ago

Hi

Context

After a usual installation, when I run ./AsciidocFX in its installation folder, I get the following traces

Error: Could not find or load main class install4j.com.kodedu.boot.AppStarter
Caused by: java.lang.ClassNotFoundException: install4j.com.kodedu.boot.AppStarter

The exec command is

exec
 /opt/AsciidocFX/jre/bin/java
 -Duser.language=en
 -Duser.country=US
 -Dfile.encoding=UTF-8
 -Xms512M
 -Xmx1024M
 -Djava.awt.headless=false
 --illegal-access=permit
 --add-exports javafx.graphics/com.sun.javafx.scene.layout=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.util=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.sg.prism=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED
 --add-exports javafx.base/com.sun.javafx.logging=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.prism=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.glass.ui=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.geom.transform=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.glass.utils=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.font=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.scene.input=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED
 --add-exports javafx.base/com.sun.javafx.event=ALL-UNNAMED
 --add-exports javafx.base/com.sun.javafx.reflect=ALL-UNNAMED
 --add-exports javafx.base/com.sun.javafx.beans=ALL-UNNAMED
 --add-exports javafx.base/com.sun.javafx.collections=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED
 --add-exports javafx.base/com.sun.javafx.binding=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED
 --add-exports javafx.base/com.sun.javafx=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.prism.paint=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.scenario.effect=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.text=ALL-UNNAMED
 --add-opens javafx.base/com.sun.javafx.collections=ALL-UNNAMED
 --add-opens javafx.base/com.sun.javafx.collections=javafx.web
 --add-exports javafx.graphics/com.sun.scenario.effect.impl.prism=ALL-UNNAMED
 --add-exports javafx.graphics/com.sun.javafx.css=ALL-UNNAMED
 --add-exports javafx.base/com.sun.javafx.property=ALL-UNNAMED
 -classpath 
 '/opt/AsciidocFX/.install4j/i4jruntime.jar:/opt/AsciidocFX/.install4j/launcherb29879e0.jar:/opt/AsciidocFX/lib/*'
 install4j.com.kodedu.boot.AppStarter
marcdexet-cnrs commented 4 years ago

I found out that /opt/AsciidocFX/.install4j/launcherb29879e0.jar is missing !

marcdexet-cnrs commented 4 years ago

I have reinstall AsciidocFX, I had done wrong. It's Ok now. I close

Bsplesk commented 3 years ago

AsciidocFX-1.7.3.jar :(

pwd
/opt/AsciidocFX
jre/bin/java -version
openjdk version "12.0.1" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.1+12)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12.0.1+12, mixed mode)
./AsciidocFX
Error: Could not find or load main class install4j.com.kodedu.boot.AppStarter
Caused by: java.lang.ClassNotFoundException: install4j.com.kodedu.boot.AppStarter
/opt/AsciidocFX/jre/bin/java -Duser.language=en -Duser.country=US -Dfile.encoding=UTF-8 -Xms512M -Xmx1024M -Djava.awt.headless=false --illegal-access=permit --add-exports javafx.graphics/com.sun.javafx.scene.layout=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.util=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.sg.prism=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx.logging=ALL-UNNAMED --add-exports javafx.graphics/com.sun.prism=ALL-UNNAMED --add-exports javafx.graphics/com.sun.glass.ui=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.geom.transform=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED --add-exports javafx.graphics/com.sun.glass.utils=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.font=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.scene.input=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx.event=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx.reflect=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx.beans=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx.collections=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx.binding=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx=ALL-UNNAMED --add-exports javafx.graphics/com.sun.prism.paint=ALL-UNNAMED --add-exports javafx.graphics/com.sun.scenario.effect=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.text=ALL-UNNAMED --add-opens javafx.base/com.sun.javafx.collections=ALL-UNNAMED --add-opens javafx.base/com.sun.javafx.collections=javafx.web --add-exports javafx.graphics/com.sun.scenario.effect.impl.prism=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.css=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx.property=ALL-UNNAMED -classpath /opt/AsciidocFX/.install4j/i4jruntime.jar:/opt/AsciidocFX/.install4j/launcherb29879e0.jar:/opt/AsciidocFX/lib/* install4j.com.kodedu.boot.AppStarter
Error: Could not find or load main class install4j.com.kodedu.boot.AppStarter
Caused by: java.lang.ClassNotFoundException: install4j.com.kodedu.boot.AppStarter
ls /opt/AsciidocFX/.install4j/launcherb29879e0.jar
ls: cannot access '/opt/AsciidocFX/.install4j/launcherb29879e0.jar': No such file or directory