C
C
chelovek_rediska2016-12-10 18:34:46
linux
chelovek_rediska, 2016-12-10 18:34:46

How to run jar file in linux?

I built a JavaFX project using maven through Windows.
The jar file ran smoothly in cmd with the java -jar command.
I tried to run this jar via Linux, but I keep getting the error Could not find or load main class main.Main .
Linux newbie.
65eb859f591d47d3a08025f159a65901.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2016-12-10
@chelovek_rediska

Have you tried oracle jdk?

R
Rou1997, 2016-12-10
@Rou1997

Check the manifest - open the JAR as a ZIP archive, then META-INF and MANIFEST.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question