I have a server that runs on the following url.
http://localhost:8080/
I have JNLP file inside the tomcat folder and hence i can access it by
http://localhost:8080/abc.jnlp
or by the server ip
http://public-ip.org./abc.jnlp
Now the problem is i have a file that can be opened with the jnlp file. I want to pass that file as the parameter. So what i did was:
@RequestMapping(value="showjnlp",method=RequestMethod.GET)
public void showJnlp(){
Process p=RunTime.getRuntime().exec("javaws -open fileName abc.jnlp");
}
Now if i do this the file opens in the server computer where the war file hosted. I want to open the file in the client side. Anyone who knows how to open the file that resides in the server that can be passed as the parameter to the client side or be opened in the client side computer?
如果您可以将jnlp作为网页链接到客户端,它将下载到客户端计算机中并在其中运行。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.