Redian新闻
>
JSP程序中如何在客户端启动另外的JAR程序
avatar
JSP程序中如何在客户端启动另外的JAR程序# Java - 爪哇娇娃
p*p
1
我做的应用是这样,一但客户在公司主页登陆之后,就在客户端启动一个事先安装好的普

JAVA的IP电话软件,请问JSP里面的代码如何写。
这个是启动命令,
java -classpath sip-communicator.jar;jmf.jar;sound.jar;%CLASSPATH%;%JMFHOME%
-Dlog4j.configuration=sip-communicator.properties -Djava.library.path=./lib
net.java.sip.communicator.SipCommunicator
avatar
g*g
2
It's as simple as: You can't do that.
Otherwise it's a security hole. Browser is designed not to allow
reading any local file without authorization of user.
Now a workaround may be using a small signed applet, which doesn't even
necessarily have an interface. If the customer accepts the signed applet
when they first time go to your website, the applet can call local program,
which can be anything including java application.

【在 p***p 的大作中提到】
: 我做的应用是这样,一但客户在公司主页登陆之后,就在客户端启动一个事先安装好的普
: 通
: JAVA的IP电话软件,请问JSP里面的代码如何写。
: 这个是启动命令,
: java -classpath sip-communicator.jar;jmf.jar;sound.jar;%CLASSPATH%;%JMFHOME%
: -Dlog4j.configuration=sip-communicator.properties -Djava.library.path=./lib
: net.java.sip.communicator.SipCommunicator

avatar
c*s
3
或者java web start。

的普
sip-communicator.jar;jmf.jar;sound.jar;%CLASSPATH%;%JMFHOME%
-Djava.library.path=./lib

【在 g*****g 的大作中提到】
: It's as simple as: You can't do that.
: Otherwise it's a security hole. Browser is designed not to allow
: reading any local file without authorization of user.
: Now a workaround may be using a small signed applet, which doesn't even
: necessarily have an interface. If the customer accepts the signed applet
: when they first time go to your website, the applet can call local program,
: which can be anything including java application.

avatar
w*r
4
security restriction apply. Best solution should be either applets or
web-start application



【在 p***p 的大作中提到】
: 我做的应用是这样,一但客户在公司主页登陆之后,就在客户端启动一个事先安装好的普
: 通
: JAVA的IP电话软件,请问JSP里面的代码如何写。
: 这个是启动命令,
: java -classpath sip-communicator.jar;jmf.jar;sound.jar;%CLASSPATH%;%JMFHOME%
: -Dlog4j.configuration=sip-communicator.properties -Djava.library.path=./lib
: net.java.sip.communicator.SipCommunicator

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。