linux中用于运行jar的lib文件夹的位置

时间:2023-01-13 12:50:18

I am running the jar file on linux then its not taking the path correct to the jar files used in the project .

我正在linux上运行jar文件,然后它没有将路径更正为项目中使用的jar文件。

Using windows i put the jar files in the lib folder parallel to the jar folder but for linux i dont know where to put the jar files instead the lib folder.

使用Windows我把jar文件放在lib文件夹中,与jar文件夹并行,但是对于linux,我不知道把jar文件放到lib文件夹的哪个位置。

1 个解决方案

#1


0  

  • Check the classpath: in your .jar META-INF file, Place the .jar files in the appropriate directory

    检查类路径:在.jar META-INF文件中,将.jar文件放在相应的目录中

  • use the commandline parameter -classpath /your/local/folder/lib/file.jar

    使用命令行参数-classpath /your/local/folder/lib/file.jar

#1


0  

  • Check the classpath: in your .jar META-INF file, Place the .jar files in the appropriate directory

    检查类路径:在.jar META-INF文件中,将.jar文件放在相应的目录中

  • use the commandline parameter -classpath /your/local/folder/lib/file.jar

    使用命令行参数-classpath /your/local/folder/lib/file.jar