简体   繁体   English

jar 内目录的类路径

[英]classpath of a directory inside jar

In liquibase docker command line parameters , Is it possible to give classpath of a directory inside jar ?在 liquibase docker 命令行参数中,是否可以在 jar 中提供目录的类路径?

like if I have to give the location of BOOT-INF/classes/changelog-1.xml inside application.jar can I give --classpath=application.jar/BOOT-INF/classes就像如果我必须在 application.jar 中给出 BOOT-INF/classes/changelog-1.xml 的位置,我可以给出 --classpath=application.jar/BOOT-INF/classes

From https://www.geeksforgeeks.org/how-to-set-classpath-when-class-files-are-in-jar-file-in-java/来自https://www.geeksforgeeks.org/how-to-set-classpath-when-class-files-are-in-jar-file-in-java/

The below specific command is used to set the classpath for any jar files separated by semi-columns.以下特定命令用于为任何以半列分隔的 jar 文件设置类路径。

C:> set CLASSPATH=classpath1;classpath2...
1. C:> set CLASSPATH=.;C:\dependency\framework.jar

2. //Add multiple jars
$ set CLASSPATH=C:\dependency\framework.jar;C:\location\otherFramework.jar  

3. //* means all the files with .jar extension
$ set CLASSPATH=C:\dependency\framework.jar;C:\location\*.jar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM