mprimeaux commented on issue #337:
URL: https://github.com/apache/maven-mvnd/issues/337#issuecomment-1273578995

   It seems the [brew formula for 
mvnd](https://github.com/mvndaemon/homebrew-mvnd) was updated to `0.8.2`.  
   
   Oddly, however, I'm still receiving the same exception as 
[before](https://github.com/apache/maven-mvnd/issues/337#issuecomment-1270296072)
 after installing the updated version.
   
   ```shell
   ❯ brew list mvnd                                                             
                                                                              ─╯
   /opt/homebrew/Cellar/mvnd/0.8.2/bin/mvnd
   /opt/homebrew/Cellar/mvnd/0.8.2/bin/mvnd-bash-completion.bash
   /opt/homebrew/Cellar/mvnd/0.8.2/libexec/bin/ (2 files)
   /opt/homebrew/Cellar/mvnd/0.8.2/libexec/conf/ (3 files)
   /opt/homebrew/Cellar/mvnd/0.8.2/libexec/mvn/ (85 files)
   ```
   
   Against the Temurin 8 JDK:
   
   ```shell
   ❯ mvnd --version                                                             
                                                                              ─╯
   Error: A JNI error has occurred, please check your installation and try again
   Exception in thread "main" java.lang.UnsupportedClassVersionError: 
org/mvndaemon/mvnd/client/DefaultClient has been compiled by a more recent 
version of the Java Runtime (class file version 55.0), this version of the Java 
Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
   ```
   
   I decided to downloaded version 0.8.2 again and test as per @gnodet 
[here](https://github.com/apache/maven-mvnd/issues/337#issuecomment-1271448699) 
and this version works fine against the same Java 8 source that failed above.
   
   I'm not yet sure what's going on but thought I'd post it here before I 
investigate.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to