softwareCobbler / luceedebug

line debugger for lucee
GNU Lesser General Public License v2.1
44 stars 15 forks source link

gradlew.bat shadowjar #36

Open ASKemp opened 1 year ago

ASKemp commented 1 year ago

Getting error

Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ...on executing gradlew.bat shadowjar

softwareCobbler commented 1 year ago

The following may be helpful:

Not sure if there's anything we can do to improve this part of the experience from our end, it looks like an issue with the build machine's Gradle configuration. If you find a solution, please let us know what it was, and if it turns out there's something in the Gradle configuration we can change to make it "just work" in more cases, we'll do that.

ASKemp commented 1 year ago

Thanks. Installed Gradle manually and better luck this time but still got...

Task :luceedebug:makeMockCfSourceFile java.lang.UnsupportedClassVersionError: luceedebug/test/MakeMockCfFile 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:763)ing toolchain adoptopenjdk-11-x64-windows.zip > adoptopenjdk-11-x64-windows.zip >ndencies of :luceedebu at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)topenjdk-11-x64-windows.ziof :luceedebug:runtimeClasspath > Provisioning toolchain adop at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) Provisioning toolchain adoptopenjdk-11-x64-windows.zip > adoptopenjdk-11-solve dependencies of :l at java.net.URLClassLoader.access$100(URLClassLoader.java:73)64-windows.zip > adopto at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" NG [4m 10s] Task :luceedebug:makeMockCfSourceFile FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 4m 27s 2 actionable tasks: 2 executed

Any ideas?

EDIT: I've updated to Java 17.07.7 and still getting the same error - the output still indicates Java 8...???

java -version shows: java version "17.0.7" 2023-04-18 LTS Java(TM) SE Runtime Environment (build 17.0.7+8-LTS-224) Java HotSpot(TM) 64-Bit Server VM (build 17.0.7+8-LTS-224, mixed mode, sharing)

EDIT: Ahh, my Java_Home environmental variable (Windows) hadn't updated from the 1.8 path - I assumed it would with the updates. I have a luceedebug.jar at last!!!