APM Agent - Error: Could not find or load main class

Good morning,
Could someone please help me with this configuration.

Java SDK:
APM Agent: 1.18.1
Jar File: elastic-apm-agent-1.18.1.jar
SO: RHEL7.9 - 64bits

Java server:
[root@wasdev ~]# java -version
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)

Java WAS:
[root@wasdev bin]# /opt/IBM/WebSphere/AppServer/java_1.8_64/jre/bin/java -version
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build - pxa6480sr6fp15ifix-20200820_01(SR6 FP15+IJ26443))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20200729_452626 (JIT enabled, AOT enabled)
OpenJ9 - 43296bc
OMR - 08b0594
IBM - 70917a2)
JCL - 20200720_01 based on Oracle jdk8u261-b13

[root@wasdev bin]# jps -lv
3236 sun.tools.jps.Jps -Dapplication.home=/usr/lib/jvm/java-1.8.0-openjdk- -Xms8m

Generic JVM arguments:

WAS native_stderr.log:
*Error: Could not find or load main class *
ERROR IndyBootstrap null
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:220)
at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:327)
at com.sun.nio.zipfs.ZipFileSystem.findEND(ZipFileSystem.java:975)
at com.sun.nio.zipfs.ZipFileSystem.initCEN(ZipFileSystem.java:1042)
at com.sun.nio.zipfs.ZipFileSystem.(ZipFileSystem.java:142)
at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemPr

WAS native_stdout.log:
Listening for transport dt_socket at address: 7779
2020-10-10 11:39:00,493 [main] INFO co.elastic.apm.agent.util.JmxUtils - Found JVM-specific OperatingSystemMXBean interface: com.ibm.lang.management.OperatingSystemMXBean
2020-10-10 11:39:00,781 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.18.1 as - on Java 1.8.0_261 Runtime version: - pxa6480sr6fp15ifix-20200820_01(SR6 FP15+IJ26443) VM version: 2.9 (IBM Corporation) Linux 3.10.0-1160.2.1.el7.x86_64
2020-10-10 11:39:00,783 [main] WARN co.elastic.apm.agent.configuration.StartupInfo - To enable all features and decrease startup time, please configure application_packages
2020-10-10 11:39:08,265 [main] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
2020-10-10 11:39:08,339 [elastic-apm-init-instrumentation-shutdown-hook] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to STOPPED state
2020-10-10 11:39:08,700 elastic-apm-remote-config-poller ERROR No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
"native_stdout.log" 101L, 16237C

Hi @MfuentesG,

This issue seems quite similar to APM Agent does not start, is it the same or is it a different one ? The other one was due to extra characters in configuration, thus if it's not the same you might double-check this first.