QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1954|回复: 1

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

[复制链接]
发表于 2006-9-15 14:15:10 | 显示全部楼层 |阅读模式
我将程序放入到~/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启动窗口程序,应该怎么办?
发表于 2006-9-17 18:22:13 | 显示全部楼层
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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-8 02:59 , Processed in 0.091138 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表