0

My project need the vm option to run properly, with this:

-Djava.library.path="C:\your-path\SimpleITK-2.2.1-Java-win64"

if not configured, every run/debug returns this error:

java.lang.UnsatisfiedLinkError: no SimpleITKJava in java.library.path

and this is the exact error that i get when i build my project and try to execute the jar. I'm using intellij with windows. How can i "configure the vm option" for build?

Salu Ramos
  • 13
  • 3

1 Answers1

0

If you need to configure vm options in intellij. Run -> Edit configurations -> Modify options ->Add VM Options. There you can configure. Reference intellij 2023.1 Version.

Refer this if you are looking at runtime, assuming maven is used as build tool.

Add jvm options to a Spring Boot application started via mvn spring-boot:run

Suresh Kumar
  • 90
  • 1
  • 9
  • Hi, i already configured the vm option for run/debug. My problem is with the build, intellij appears to build my project ignoring my vm option, that's what i need to fix. – Salu Ramos Jun 14 '23 at 17:02
  • So Its about not running the application in IntelliJ. Right?. Build tool is maven? Try this.. $ mvn spring-boot:run -Djava.library.path="C:\your-path\SimpleITK-2.2.1-Java-win64". – Suresh Kumar Jun 14 '23 at 17:42
  • You can try setting PATH in windows. if its needed to run – Suresh Kumar Jun 14 '23 at 17:48
  • https://www.computerhope.com/issues/ch000549.htm Set Env variable for windows – Suresh Kumar Jun 14 '23 at 19:02
  • You can also try adding the option to the Maven runner in the IDE: 'File | Settings | Build, Execution, Deployment | Build Tools | Maven | Runner -> VM Options' – Koyasha Jun 26 '23 at 14:57