java桌面应用程序自动启动?

发布于 2024-07-24 06:18:08 字数 102 浏览 7 评论 0原文

我使用 NetBeans 6.1 用 Ja​​va 创建了一个桌面应用程序,并制作了该应用程序的 jar 文件。 现在我想让它在客户端机器启动时自动启动。

我怎么做?

I have created a desktop application in Java using NetBeans 6.1 and made a jar file of the application. Now I want to make it automatically start up whenever a client's machine boots up.

How do I do that?

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

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

发布评论

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

评论(5

╄→承喏 2024-07-31 06:18:08

有许多商业安装程序可以做到这一点
http://www.advancedinstaller.com/jre-install.html

您在寻找吗想要一个免费/操作系统的吗?

谢谢
克里希纳

There are many commercial installers which can do this
http://www.advancedinstaller.com/jre-install.html

Are you looking for a free/OS one?

Thanks
Krishna

只为一人 2024-07-31 06:18:08

此安装程序可以创建一个扩展名为“msi”的文件,其行为与常规 Windows 安装程序相同。 它将您的 jar 文件和 JRE 捆绑在一起形成单个文件。 该程序充当“向导”,您可以在其中配置所有必要的选项。

看看这个产品:高级安装程序

祝你好运。

This installer can create a file with "msi" extension that will behave as regular windows installer. It bundles your jar file and JRE together into single file. The program acts as a "wizard", where you configure all necessary options.

Take a look at this product:Advanced Installer

Good luck.

想你的星星会说话 2024-07-31 06:18:08

如果您只想在 Windows 中自动启动 java 应用程序,您只需在用户自动启动文件夹中创建一个调用 javaw 的链接,就像通常调用 java 一样。

这只是仅供参考,当然,其他建议更笼统,但这可能是最简单的解决方案......

If you simply want to have a java application autostarted in Windows you could just create a link in the users autostart folder calling javaw the same way you'd normally call java.

This is just meant FYI, the other suggestions are more general, of course, but this could be the simplest solution...

黒涩兲箜 2024-07-31 06:18:08

有效

我找到了以下顺序最好的套件来决定商业或免费套件,以满足您的需求(以下大部分都自动启动+额外功能):

顺序在顶部显示更多功能:

  1. BitRock:< a href="http://installbuilder.bitrock.com/installbuilder-features.html" rel="nofollow" title="link">查看功能
    我真的会使用这个,因为它可以实现所有跨平台 + Jnlp + 先决条件

  2. Tanukio:在此处输入链接描述

  3. IzPack

  4. Advancedinstaller:功能

  5. (可选)Jnlp web start:示例(这应该成为未来的安装方式)

请注意,没有提到先决条件,其中大部分功能列表都非常重要,因为很多情况下我们使用第三方库/依赖项,所以最好的问题是知道他们是否支持它或不是。

҉ works

I have found the following order best suite to take a decision for commercial or free one, to fit your needs (most of the following does auto startup + extra features):

Order show more features on top:

  1. BitRock: see features
    i would really use this one, because it does all cross platform + Jnlp + Prerequisite

  2. Tanukio: enter link description here

  3. IzPack

  4. Advancedinstaller: features

  5. (optional) Jnlp web start: example (this should become future way of installing)

Please note that, prerequisite is not mentioned, most of there feature list, which is very important to have in all of them, because many case we use third party libraries/dependencies, so the best question would be to know if they support it or not.

花心好男孩 2024-07-31 06:18:08

看一下 Tanuki 的 Java 服务包装器。 社区版本可以满足您的需求,还可以提供更多功能。

如果您只需要定期运行 Java 程序,我喜欢 pycron,它会将自身安装为 Windows服务,然后读取 Unix 风格的 crontab 文件,您可以在其中输入一行告诉 pycron 何时需要运行 java 进程(例如,每晚凌晨 3 点)。

Take a look at Tanuki's Java Service Wrapper. The Community version does what you need, plus a lot more.

If you only need to run a Java program periodically, I like pycron, which installs itself as a Windows service and then reads a Unix style crontab file where you would enter a line that tells pycron when it needs to run the java process (eg, every night at 3am).

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