Add properties file to build path of runnable jar

后端 未结 7 1710
無奈伤痛
無奈伤痛 2021-01-07 02:48

is it possible to add to the classpath of a runnable jar file some properties file? I tryed these solutions solutions:

  1. running the executable file using the

7条回答
  •  庸人自扰
    2021-01-07 03:04

    should it be like this prop_dir/prop1.properties prop_dir/prop1.properties in manifest?

    Also checkout this question: Java -jar : access external configuration file

提交回复
热议问题