Is it possible to use Java webstart execute .exe or dll?

假如想象 提交于 2019-11-29 05:08:49

Yes. You have to wrap the .dll in a .jar file, and reference it in your .jnlp file using <nativelib>

See here for a more detailed description.

If you want to run an executable, then your best bet is to package it up in your .jar as a resource, explode it to (say) a temporary directory, and then run it using the normal Process/Runtime mechanism.

Yes, as long as the user grants your application privileges (via the dialog that pops up), then Java webstart will have access to the file-system, and will have permission to use Runtime.exec.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!