[Bug] The compiled software package cannot run after the directory is moved #23872
Closed
2 of 3 tasks
Labels
type/bug
The PR fixed a bug or issue reported a bug
Search before asking
Read release policy
Version
any released version
Minimal reproduce step
build broker
rename or move pulsar software package
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 classpath.txt.
like:
/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:
pulsar/bin/pulsar
Lines 199 to 223 in e5bd774
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: