ExceptionInInitializerError if jars executed with java -jar

Description

Main-Class set in manifests of target/clojure.jar (or jars in Maven repository) gives impression, that they can be run as standalone JAR-packaged applications.

However running them with

results in

(It of course works perfectly fine for clojure.jar built in local profile with dependencies shaded.)

Proposed: Remove main class for Clojure jar in Maven, retain it for local jar build (which includes spec jars).

Patch: clj-2459-1.patch

Screened by: Alex Miller - correctly builds normal Clojure without a main class, but continues to build local jar with a main (that one includes the spec deps).

Environment

N/A

Activity

Show:
Alex Miller
December 22, 2018, 1:25 AM

Thanks, good call.

Piotr Żygieło
March 22, 2019, 9:52 PM

I see it has assigned 1.11 as fix version, but I also saw preparation for 1.10.1. Could be included in 1.10.1 as well?

Alex Miller
March 23, 2019, 12:53 AM

We are trying to keep the changes in 1.10.1 very focused, so it will wait for 1.11.

Piotr Żygieło
March 23, 2019, 12:58 AM

Understood, thanks.

Alex Miller
December 12, 2020, 6:09 AM

Applied for 1.10.2-rc1

Fixed

Assignee

Unassigned

Reporter

Piotr Żygieło

Labels

Approval

Ok

Patch

Code

Fix versions

Affects versions

Priority

Trivial