Le 28/09/2019 à 09:02, Cyril Richard a écrit :

> So, my clue is that I have a problem in my d/rules .
> Can you please help me?

Hi Cyril,

There are two ways to run a Java class inside a jar :

1. Invoke java by specific the main class explicitly:

    java -cp application.jar:dependency.jar org.foo.Application

2. Rely on the MANIFEST.MF file inside the jar defines the main class
and the classpath, in this case you simply invoke :

    java -jar application.jar

So in your case, either you add the manifest with the expected
Main-Class attribute [1], either you use the first form to start the
application.

Emmanuel Bourg

[1] https://docs.oracle.com/javase/tutorial/deployment/jar/appman.html

Reply via email to