RedisClient icon indicating copy to clipboard operation
RedisClient copied to clipboard

安装出错Cannot load 32-bit SWT libraries on 64-bit JVM电脑是MACOSX

Open daihu opened this issue 11 years ago • 6 comments
trafficstars

java -jar redisclient-linux.x86.1.5.jar Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.C.(Unknown Source) at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source) at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source) at org.eclipse.swt.widgets.Display.(Unknown Source) at com.cxy.redisclient.presentation.RedisClient.open(RedisClient.java:197) at com.cxy.redisclient.presentation.RedisClient.main(RedisClient.java:187)

daihu avatar Oct 14 '14 02:10 daihu

目前没有应该是没有打linux-64的包, pom里换一个swt的包,org.eclipse.swt.gtk.linux.x86_64,然后自己打个包就能用了。

peter-liu avatar Dec 28 '14 07:12 peter-liu

Having the same issue. $ java -jar redisclient-linux.x86.1.5.jar Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.C.(Unknown Source) at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source) at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source) at org.eclipse.swt.widgets.Display.(Unknown Source) at com.cxy.redisclient.presentation.RedisClient.open(RedisClient.java:197) at com.cxy.redisclient.presentation.RedisClient.main(RedisClient.java:187)

tjrafferty avatar Apr 08 '15 04:04 tjrafferty

ubuntu 14.04 64位没问题.

peter-liu avatar Jun 11 '15 09:06 peter-liu

How to resolve this problem?

heyongchenghithub avatar Jun 21 '17 12:06 heyongchenghithub

swt在macos上不好用,不推荐在macos上用redisclient

caoxinyu avatar Jun 22 '17 01:06 caoxinyu

在pom里替换成64位的依赖库就好了 <groupId>org.eclipse.swt.org.eclipse.swt.gtk.linux.x86_64.4.3.swt</groupId> <artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId> 4.3

timbersea avatar Dec 05 '17 15:12 timbersea