0

I try to execute a jar.

java.exe is wrapper system dll files. so it can use native library.

But javaw.exe is not wrapper system dll or path..

java -jar somejar.jar correctly works.

But javaw -jar somejar.jar isn't working with dll library..

I must use javaw.exe.

Because java.exe is executed on console windows.

I don't want to popup console windows... I want to execute only my jar.

How can I use javaw.exe? or java.exe?

dan1st
  • 12,568
  • 8
  • 34
  • 67
tae jun Kim
  • 176
  • 1
  • 1
  • 10

1 Answers1

0

I see that there is an option that you can set the system property with the javaw command. This way you can set the library path.

-Dproperty=value Set a system property value. If value is a string that contains spaces, you must enclose the string in double quotes: java -Dfoo="some string" SomeClass

You can see some details here also (Point-#4).

imranhasanhira
  • 357
  • 2
  • 7