0

I am trying to specify java.library.path via VM options in IntelliJ Idea but not sure how to specify multiple paths

I am adding like below -Djava.library.path=c:/loc1:c:/loc2 but it doesn't seem to work. I don't think i can use semi-colon as its for entering another variable.

Any suggestions?

Helena
  • 444
  • 2
  • 15
  • What operating system? You have to use the [`File.pathSeparator`](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html#pathSeparatorChar) - which depends on your platform. – Johannes Kuhn Jul 12 '22 at 09:14
  • @JohannesKuhn : I am in Windows 10. I am using IntelliJ Idea editor. Want to know the exact syntax for the example i mentioned in OP. I Can't use the semi colon as it doesn't work. – Helena Jul 12 '22 at 09:17
  • On Windows it should be semicolon https://stackoverflow.com/a/52827526/12844632 . Where exactly do you specify java.library.path? Try to specify it in the Run/Debug configuration | VM Options field. – Egor Klepikov Jul 12 '22 at 09:27

0 Answers0