ISWC-Reproducibility-Track / Paper_609

1 stars 0 forks source link

Cannot run compiled JAR #4

Open dgarijo opened 4 years ago

dgarijo commented 4 years ago

Hello, I have been trying to run the JAR provided and it works successfully when running:

java -jar .\OWL2Bench.jar  10 EL 20

I proceeded to build the JAR myself, and I managed to do so successfully. However, when I ran it, I got:

Exception in thread "main" java.lang.ClassNotFoundException: de.linkvt.ontobench.Application

I ran mvn compile and install as suggested in the instructions, but I am trying to run the JAR directly:

java -jar .\maven-1.0-SNAPSHOT.jar -Dexec.mainClass=ABoxGen.InstanceGenerator.Generator -Dexec.args="1 QL"

My generated JAR is 130 MB instead of the 60MB approx provided. Is there anything wrong?

dgarijo commented 4 years ago

Oh, if I try to run it as in the readme java -jar .\maven-1.0-SNAPSHOT-shaded.jar 10 EL 20, I get the same error.

dgarijo commented 4 years ago

Note, I can run mvn exec:java -Dexec.mainClass=ABoxGen.InstanceGenerator.Generator -Dexec.args="1 QL 1" successfullly

andreas-steigmiller commented 4 years ago

It also seems to work if you replace <mainClass>de.linkvt.ontobench.Application</mainClass> with <mainClass>ABoxGen.InstanceGenerator.Generator</mainClass> in the pom.xml file. However, I also wonder why the POM contains so many probably irrelevant dependencies/plugins such as Spring, node/npm, postgresql, etc.

GunjanSingh1 commented 4 years ago

I have now removed the irrelevant dependencies. Thank you.