Joforde opened a new issue, #23872: URL: https://github.com/apache/pulsar/issues/23872
### Search before asking - [x] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Read release policy - [x] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker. ### Version any released version ### Minimal reproduce step build broker `mvn -pl pulsar-broker package -DskipTests # verify ok bin/pulsar standalone ` rename or move pulsar software package `cd ../;mv pulsar-4.0.1 pulsar;cd pulsar; # verify failed bin/pulsar standalone ` ### What did you expect to see? broker started success ### What did you see instead? Error: Could not find or load main class org.apache.pulsar.PulsarStandaloneStarter Caused by: java.lang.ClassNotFoundException: org.apache.pulsar.PulsarStandaloneStarter ### Anything else? When compiling, Pulsar caches the absolute path of the JAR package into the _pulsar-4.0.1/distribution/server/target/classpath.txt_, for example: eg: /home/xxx/pulsar-4.0.1/pulsar-broker/target/pulsar-broker.jar: When starting the service, Pulsar reads the file that contains the cached absolute paths of the JAR packages: [](https://github.com/apache/pulsar/blob/e5bd77419e91d1602731cd0c1d02a738e1b7ebc7/bin/pulsar#L199-L223) ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
