打印

xfce4 如何让桌面程序自启动?

xfce4 如何让桌面程序自启动?

我将程序放入到~/Desktop/Autostart 下了,程序也在开机时运行了,但报出错误(程序是java写的swt程序)

Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3138 in java.library.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
        at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
        at org.eclipse.swt.widgets.Display.<clinit>(Display.java:122)
        at Swb.<init>(Swb.java:17)
        at Swb.main(Swb.java:130)

原因应该是窗口没有启动而程序已经启动了,所以才会出这样的错
和在没有启动窗口的客户端运行错误相同

不知道有没有人遇到过这样的问题,要在xfce4启动窗口程序,应该怎么办?

TOP

If you are trying to distribute a standalone SWT application, I would recommend you get the standalone SWT .zip linked to from http://www.eclipse.org/swt/ which includes copies of all the .so files for SWT.

MagicLinux -Be yourself

TOP