티스토리 뷰

728x90
java -Denviroment=dev -jar myjar.jar 
 

https://stackoverflow.com/questions/29811377/how-to-pass-system-properties-to-a-jar-file

 

How to pass system properties to a jar file

I have a main class that expects certain properties that I pass using the -D option. I can access this in my IDE by sending them as VM options. I package this application into a jar file using Mav...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[python][pandas] merge  (0) 2022.08.06
[ORC] Optimized Row Columnar  (0) 2022.08.06
[python][pandas] df.groupby('a').agg({'b':lambda x: list(x)})  (0) 2022.08.06
[MacOSX] ISO8601  (0) 2022.08.06
[kotlin] `sealed class` vs `enum class`  (0) 2022.08.06
댓글