Menu

#2 InvocationTargetException under Linux

open
nobody
None
5
2008-08-18
2008-08-18
No

Hi!

I can't launch the game under Mandriva Linux 2007 whereas I have installed the JDK 1.6. I used the JNLP link to do it. I get the following exception:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1272)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1218)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1065)
at com.sun.javaws.Launcher.run(Launcher.java:105)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.UnsatisfiedLinkError: no swt-win32-3349 or swt-win32 in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at diplomacy.gui.GameLauncher.main(GameLauncher.java:13)
... 9 more

It is very easy to fix. You can find an example of JNLP file to configure SWT that works fine under Windows and Linux at least on the website of IBM.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB