Java Web Start 应用程序自动加载

发布于 2024-12-11 23:52:25 字数 31 浏览 0 评论 0原文

有没有办法让 JWS 应用程序在系统启动时运行?

Is there a way to make JWS application be runnable on system startup?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

唠甜嗑 2024-12-18 23:52:25

它应该像启动 一样简单javaws 命令在系统启动时使用目标 JNLP URL。我的 Windows 脚本有点生疏,但你可以这样做:

rem In "autoexec.bat", or another system startup script.
%JAVA_HOME%\bin\javaws http://my.domain.com/myjavawsapp.jnlp

我不确定“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:

rem In "autoexec.bat", or another system startup script.
%JAVA_HOME%\bin\javaws http://my.domain.com/myjavawsapp.jnlp

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.

夏有森光若流苏 2024-12-18 23:52:25

只需在启动过程中包含 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文