cloudnativecube / octopus

14 stars 2 forks source link

java -cp的正确用法 #130

Open mdianjun opened 3 years ago

mdianjun commented 3 years ago

You can't use regular expressions or other wildcards in the Class-Path attribute of your manifest. There is only one supported wildcard in Java, and that only works on if specified on the commandline on a "manual" java invocation (i.e. not using -jar): using directoryname/*.

java -cp /export/hive/lib/*:clickhouse-jdbc-bridge-2.0.3-shaded.jar  ru.yandex.clickhouse.jdbcbridge.JdbcBridgeVerticle

参考:https://stackoverflow.com/questions/4756736/how-to-use-regular-expression-in-java-manifest-classpath