Thanks for read.
谢谢你的阅读。
First, i'm sorry for my english. You will be upset....
首先,我很抱歉我的英语。你会不高兴....
I try to excute jar.
我尝试执行jar。
java.exe is wrapper system dll files. so it can use native library.
java.exe是包装系统dll文件。所以它可以使用本机库。
But javaw.exe is not wrapper system dll or path..
但javaw.exe不是包装系统dll或路径..
'java -jar somejar.jar' is correctly work.
'java -jar somejar.jar'正常工作。
But, 'javaw -jar somejar.jar' isn't work with dll library..
但是,'javaw -jar somejar.jar'不适用于dll库..
I must use javaw.exe.
我必须使用javaw.exe。
Because java.exe is excuted on console windows.
因为java.exe在控制台窗口上被执行。
I don't want to popup console windows.. I want to excute only my jar.
我不想弹出控制台窗口..我想只执行我的jar。
How use javaw.exe? or java.exe?
怎么用javaw.exe?还是java.exe?
1 个解决方案
#1
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.
我看到有一个选项可以使用javaw命令设置系统属性。这样您就可以设置库路径。
-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
-Dproperty = value设置系统属性值。如果value是包含空格的字符串,则必须用双引号括起该字符串:java -Dfoo =“some string”SomeClass
You can see some details here also (Point-#4).
你也可以在这里看到一些细节(Point-#4)。
#1
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.
我看到有一个选项可以使用javaw命令设置系统属性。这样您就可以设置库路径。
-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
-Dproperty = value设置系统属性值。如果value是包含空格的字符串,则必须用双引号括起该字符串:java -Dfoo =“some string”SomeClass
You can see some details here also (Point-#4).
你也可以在这里看到一些细节(Point-#4)。