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

Attachments

1

Activity

Show:

Alex Miller December 11, 2020 at 7:09 PM

Applied for 1.10.2-rc1

Piotr Żygieło March 22, 2019 at 1:58 PM

Understood, thanks.

Alex Miller March 22, 2019 at 1:53 PM

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

Piotr Żygieło March 22, 2019 at 10:52 AM

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 December 21, 2018 at 2:25 PM

Thanks, good call.

Fixed

Details

Assignee

Reporter

Labels

Approval

Ok

Patch

Code

Priority

Affects versions

Fix versions

Created December 20, 2018 at 8:04 PM
Updated December 11, 2020 at 7:09 PM
Resolved December 11, 2020 at 7:09 PM