Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ExceptionInInitializerError & java.lang.NoClassDefFoundError (Linux) #1262

Open
TotallyMehis opened this issue Feb 8, 2025 · 1 comment

Comments

@TotallyMehis
Copy link

Running mvnd -v I get the following output:

Apache Maven Daemon (mvnd) 2.0.0-rc-1 linux-amd64 native client (39127a46697aa1f64d19b106f943a1a13c9f1637)
Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jni.linux.LinuxNativePty
java.lang.ExceptionInInitializerError: null

Running the command again gives me:

Apache Maven Daemon (mvnd) 2.0.0-rc-1 linux-amd64 native client (39127a46697aa1f64d19b106f943a1a13c9f1637)
Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jni.linux.LinuxNativePty
java.lang.NoClassDefFoundError: Could not initialize class org.mvndaemon.mvnd.nativ.CLibrary

JDK seems to start fine (mvnd --status):

      ID      PID                   Address   Status    RSS            Last activity  Java home
a20ab7f2    29901     inet:/127.0.0.1:41293     Idle    83m  2025-02-08T20:59:39.253  /home/miikka/.sdkman/candidates/java/21.0.6-amzn 

I am using Fedora 41. JDK:

openjdk version "21.0.6" 2025-01-21 LTS
OpenJDK Runtime Environment Corretto-21.0.6.7.1 (build 21.0.6+7-LTS)
OpenJDK 64-Bit Server VM Corretto-21.0.6.7.1 (build 21.0.6+7-LTS, mixed mode, sharing)

Related to #872 ?

@cstamas
Copy link
Member

cstamas commented Feb 8, 2025

Yes, there was a LOT of related changes in mvn and mvnd (both master), and due these changes not yet ported to mvnd, you cannot build it currently. Soon will merge #1253 that will "align" mvnd and mvn, and JLine3 stuff should be fully aligned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants