GitHub user zhenggexia added a comment to the discussion: Unable to package with Java11, error reported
Thank you for your reply. The packaging issue with Java11 has been resolved due to an incorrect configuration of the JDK environment variables I installed. But another error occurred when I used the jar package I made myself and ran it in my Java project, resulting in the following error: ```java 2024-05-20 22:35:03.437 WARN 1 --- [main] ConfigServletWebServerApplicationContext : Exception encountered duringcontext initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'system' defined in class path resource [com/alibaba/goc/gom/monitor/pekko/PekkoAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.pekko.actor.typed.ActorSystem]: Factory method 'system' threw exception; nested exception is java.lang.NoClassDefFoundError: org/agrona/collections/Long2ObjectHashMap ``` This prevents the Java program from starting properly GitHub link: https://github.com/apache/pekko/discussions/1333#discussioncomment-9502281 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
