1

Across linux, MAC, and Windows, is there any way to make a Java program startup on login? I know on windows their would just need to be a shortcut to the jar file in the user's startup folder. But for linux and MAC what should i do?

4

1 回答 1

1

没有在登录或引导时启动程序的跨平台方法,但您可以单独配置每个方法。

Windows - 将程序放在用户的启动文件夹中或使用计划任务,两者都在此处详细说明:[说明]

Mac - 通过系统偏好配置:[说明]

Linux - 配置~/.bashrc为在登录时启动或用于/etc/rc.d/rc.sysinit在启动时启动。

于 2012-07-23T22:21:54.657 回答