相关疑难解决方法(0)

Eclipse无法加载SWT库

每次我尝试在Ubuntu 12.04中打开Eclipse时,我都会收到一个不满意的链接错误,它将无法打开.我最近安装了java JDK和Android SDK,这可能是问题吗?我按照本教程.

这是日志信息:

!SESSION 2012-04-15 21:05:46.902 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2012-04-15 21:05:47.885
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/tom/.swt/lib/linux/x86_64/libswt-gtk-3740.so
Can't load library: /home/tom/.swt/lib/linux/x86_64/libswt-gtk.so

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:285)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
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:132)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at …
Run Code Online (Sandbox Code Playgroud)

java eclipse ubuntu unsatisfiedlinkerror

291
推荐指数
6
解决办法
18万
查看次数

swt浏览器没有更多处理错误

我写了一个简单的程序.只是CTabFolder和CTabItem固有的WelcomTab.我想用浏览器填充我的WelcomeTab来渲染我的htmls.在WelcomeTab的init()方法我创建一个浏览器但是当程序想要构造它时,我得到这个错误

Exception in thread "main" org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.browser.Mozilla.initMozilla(Unknown Source)
at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
at org.hekmatof.Hbook.UI.WelcomeTab.init(WelcomeTab.java:55)
at org.hekmatof.Hbook.UI.WelcomeTab.<init>(WelcomeTab.java:30)
Run Code Online (Sandbox Code Playgroud)

...

另外我在基于Arch-Linux的KDE上使用Eclipse 3.7,因为我搜索了这个错误,无处不在告诉有关线程的句柄限制,但这是一个简单的程序,没有Font或Image ......要处理.我认为从操作系统获取处理应该是一个问题

java linux swt kde archlinux

13
推荐指数
2
解决办法
2万
查看次数

如何在 Ubuntu 20.04 LTS 上安装 libwebkitgtk 包?

所以我正在尝试安装Solar2D(以前称为Corona SDK)来制作手机游戏。安装依赖项后,当我运行 Solar 2D 时,出现以下错误:

/home/user/CoronaSimulator/CoronaSimulator: error while loading shared libraries: libwebkitgtk-3.0.so.0: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

我尝试使用安装 libwebkitgtk,sudo apt-get install libwebkitgtk-1.0-0但在终端中收到以下消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libwebkitgtk-1.0-0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libwebkitgtk-1.0-0' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

gtk ubuntu dependencies coronasdk solar2d

12
推荐指数
2
解决办法
2万
查看次数