[GRADLE-3573] JANSI can't initialize if java.io.tmpdir is mounted with noexec Created: 14/Oct/16  Updated: 31/Oct/16  Resolved: 14/Oct/16

Status: Resolved
Project: Gradle
Affects Version/s: 3.1
Fix Version/s: 3.2-rc-2

Type: Bug
Reporter: Benjamin Muschko Assignee: Jendrik Johannes (Inactive)
Resolution: Fixed Votes: 0


See post on the Gradle forum

With the upgrade to jansi 1.13 a native library now is attempted to be extracted from the bundled jar and then loaded into memory. Unfortunately, this can fail with Could not initialize class org.fusesource.jansi.internal.CLibrary if there is any issue loading that library.

By default this library attempts to extract itself to java.io.tmpdir, which can often be mounted under linux as noexec, and under those conditions it will fail with the "Could not initialize class org.fusesource.jansi.internal.CLibrary" error.

Generated at Wed Jun 30 12:52:19 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.