OVH Cloud OVH Cloud

[MacOS X] eclipse-SWT et lib carbon

1 réponse
Avatar
yvon.thoraval
j'avance à très petits pas.

si je lance le SpalshScreen du projet HelloWorld, j'obtiens le message
suivant :

Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-carbon-3029 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at
org.eclipse.swt.internal.Library.loadLibrary(Library.java:100)
at org.eclipse.swt.internal.carbon.OS.<clinit>(OS.java:20)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:294)
at SplashScreen.main(SplashScreen.java:17)


donc, j'ajoute :

export
LD_LIBRARY_PATH=/Applications/dev/eclipse/plugins/org.eclipse.swt.carbon
_3.0.0/os/macosx/ppc/libswt-carbon-3029.jnilib

java SplashScreen


à mon script de lancement, mais bon, si n'y fait rien


d'autre part, j'ai ajouté au CLASSPATH :

export
CLASSPATH=/Applications/dev/eclipse/plugins/org.eclipse.swt.carbon_3.0.0
/ws/carbon/swt.jar

export CLASSPATH=$CLASSPATH:/Applications/dev/eclipse/plugins

export
CLASSPATH=$CLASSPATH:/Users/yvonthor/bin/Java/Eclipse/HelloWorld/Hello.j
ar


--
Yvon Thoraval

1 réponse

Avatar
TestMan
ah les joies des librairies natives ;-)

On peut dire ce que l'on veut sur Swing, mais c'est du Java !
Mais bon, comme dab, il faut qu'IBM il refassent la roue ... au lieu de
l'améliorer :(

(oups le méchant trop pas beau tout vert que je viens de lacher).
Aller je vais me coucher ;-)

A+
TestMan

Yvon Thoraval wrote:

j'avance à très petits pas.

si je lance le SpalshScreen du projet HelloWorld, j'obtiens le message
suivant :

Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-carbon-3029 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at
org.eclipse.swt.internal.Library.loadLibrary(Library.java:100)
at org.eclipse.swt.internal.carbon.OS.<clinit>(OS.java:20)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:294)
at SplashScreen.main(SplashScreen.java:17)