Add properties file to build path of runnable jar

后端 未结 7 1654
無奈伤痛
無奈伤痛 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 02:52

    You can simply put the properties file in the META-INF folder.

    +META-INF
     +properties_dir
      +Test.properties
    

提交回复
热议问题