Java Web Start 应用程序自动加载
有没有办法让 JWS 应用程序在系统启动时运行?
Is there a way to make JWS application be runnable on system startup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
有没有办法让 JWS 应用程序在系统启动时运行?
Is there a way to make JWS application be runnable on system startup?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
它应该像启动
一样简单javaws
命令在系统启动时使用目标 JNLP URL。我的 Windows 脚本有点生疏,但你可以这样做:我不确定“
autoexec.bat
”是否是启动项的好地方,但应该有很多替代方案,例如开始菜单“Startup”文件夹、服务和注册表项等。最终您只需使用 URL 调用“javaws”程序即可。It should be as easy as launching the
javaws
command with the target JNLP URL on system startup. My Windows scripting is a bit rusty but you could do something like this:I'm not sure if "
autoexec.bat
" is a good place for startup items any more but there should be plenty of alternatives like the Start Menup "Startup" folder, Services, and registry entries, etc. Ultimately you just need to call the "javaws" program with your URL.只需在启动过程中包含 JNLP 文件即可。由于 JNLP 无论如何都需要在本地可用,因此计算机上始终有一个文件。对于 Windows,您可以在控制面板 -> 下检查Java->临时 Internet 文件 ->查看并右键单击该应用程序并选择显示 JNLP 文件。
顺便说一句,如果您通过网络安装该应用程序,则会在您的本地计算机上放置一个副本。
Just include the JNLP file in the startup process. Since the JNLP needs to be locally available anyway there is always a file on the machine. For windows you can check under Control panel -> Java -> Temporary Internet Files -> View and right click the app and choose show JNLP file.
Btw if you install the app through the web a copy is placed on your local machine.