gpt4 book ai didi

java - 如何在 IceWM 中启动时运行 java GUI?

转载 作者:太空宇宙 更新时间:2023-11-04 05:28:05 24 4
gpt4 key购买 nike

我一直在尝试在 IceWM linux 中运行基于 java 的 GUI onBoot,尝试通过不同的运行级别运行它..rc3、rc4 和 rc5,但无法运行它。这是我正在尝试的..

sudo java -jar/path/to/jar/etc/init.d/script 中并将其链接起来

sudo ln -s /etc/init.d/script /etc/rc3.d/S99script

我还确保脚本也具有适当的权限。感谢帮助。

最佳答案

1)login with your user then use "ls -a" command.you can find .bash_profile file.
2)suppose still you dont have then create manually "vi .bash_profile" in your home directory(eg. vi /home/user/.bash_profile)
3)give 755 permission to bash_profile .(chmod 755 /home/user/.bash_profile)
4)then edit vi .bash_profile
export JAVA_HOME=(Path of ur java location- {eg. /opt/jdk1.6.0_45})
export PATH=$PATH:(Path of ur java location- {eg. /opt/jdk1.6.0_45})
PATH=$PATH:$HOME/bin

:wq (save and exit)

5)run .bash_profile (sh .bash_profile)

关于java - 如何在 IceWM 中启动时运行 java GUI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28164857/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com