Is jol missing the main property in the MANIFEST file?

243 views Asked by At

I'm trying to use jol, from openJDK.

I downloaded the jar from here:
http://central.maven.org/maven2/org/openjdk/jol/jol-cli/0.4/jol-cli-0.4.jar

However, when I try to run with:
java -jar jol-cli-0.4.jar --help

I get:
no main manifest attribute, in /home/rattias/jol-cli-0.4.jar

What am I doing wrong?

1

There are 1 answers

2
Roberto Attias On

while the precompiled jars don't seem to work, I ended up building the project from sources following the instructions here. The jol from jol-cli/target/jol-cli.jar works fine.