473,545 Members | 666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SWT Extension toolKit - java.lang.Unsat isfiedLinkError

Ganesh9u
23 New Member
Hi All,

import org.sf.feeling. swt.win32.exten sion.hook.Hook;
import org.sf.feeling. swt.win32.exten sion.hook.data. HookData;
import org.sf.feeling. swt.win32.exten sion.hook.data. MouseHookData;
import org.sf.feeling. swt.win32.exten sion.hook.liste ner.HookEventLi stener;

public class HotMouse
{

public static void main(String[] args) {
Hook.MOUSE.addL istener(new HookEventListen er() {
public void acceptHookData( HookData hookData) {
if (hookData != null)
{
System.err.prin tln(((MouseHook Data)hookData). getPointX()"," ((MouseHookData )hookData).getP ointY());
}
if (hookData.getWP aram() == 513) { System.out.prin tln("left button pressed");// left button pressed
} else if (hookData.getWP aram() == 514) { System.out.prin tln("left button released");// left button released
} else if (hookData.getWP aram() == 516) { System.out.prin tln("right button pressed");// right button pressed
} else if (hookData.getWP aram() == 517) { System.out.prin tln("right button");// right button
} else if (hookData.getWP aram() == 519) { System.out.prin tln("middle button 519");// middle button
} else if (hookData.getWP aram() == 520) { System.out.prin tln("middle button 520");// middle button
}
}
});
Hook.MOUSE.inst all();
}

}


I have Used SWT Win32 Extension 1.0.5 toolkit for Mouse & Keyboard hook operation, in java.
I am using Eclipse J2EE Latest version, I also added those external jar files(SWT Win32 Extension all Jar files),
At design time I did not get any error when I run this program.


When I Run this Program I got the error as

Exception in thread "Thread-0" java.lang.Unsat isfiedLinkError : no swt-extension-win32 in java.library.pa th
at java.lang.Class Loader.loadLibr ary(Unknown Source)
at java.lang.Runti me.loadLibrary0 (Unknown Source)
at java.lang.Syste m.loadLibrary(U nknown Source)
at org.sf.feeling. swt.win32.inter nal.extension.E xtension.<clini t>(Extension.ja va:42)
at org.sf.feeling. swt.win32.inter nal.extension.E ventObject.<ini t>(EventObject. java:34)
at org.sf.feeling. swt.win32.exten sion.hook.Hook$ HookEventLoop.r un(Hook.java:32 8)
at java.lang.Threa d.run(Unknown Source)

What might be the problem ? and what can be done. any solution.

-Thanks In Advance..
Aug 24 '09 #1
1 4335
JosAH
11,448 Recognized Expert MVP
@Ganesh9u
I never used SWT but that error message indicates that a .so (or .dll) file could not be found for loading; the jvm wants to load the file 'swt-extension-win32' but can't find it anywere on the path 'java.library.p ath' designated for dynamic link libraries.

kind regards,

Jos
Aug 24 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2984
by: Phillip Montgomery | last post by:
Hello all; I'm trying to debug an issue with a java script called, SelectSockets. It appears to be a fairly common one found on the web. I downloaded the SGI Java v1.4.1 installation from SGI's webpage and installed it using SGI's swmgr application. The installation was very straight forward and there were no errors when I installed the...
0
1872
by: snkssa | last post by:
Hi, I got the following error while building an application with ant. please can you give the solution or reason why it is failing? Thank you create_zip_linux: ##################################
1
4792
by: Akaketwa | last post by:
i have an application deployed on WAS6.0 that uses a db2 v8.1 database on a linux platform. when i try to run it i get a java.lang.UnsatisfiedLinkError:SQLConnect error. i have tried some solution i foundd on the net like running the .db2profile to set system variables but havent worked.Full details of the error as printed on the console are:...
3
2000
by: jayattarde | last post by:
Hi, While running .jar file I get the following error. Please helpme to sort it out. ption in thread "main" java.lang.NoClassDefFoundError: while resolving class: Cutter at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0) at...
1
9743
by: GayatriS | last post by:
Hi, I have written a jni program to call my vc++ dll. My java program is as below: //CODE import java.util.*; class callVcc { native int sum(int i, int j);
3
9333
by: Jazi | last post by:
Hi, I have built a web servise using JNI under jboss. The JNI loads a native library static { Ststem.loadLibrary("foo"); } If I starts the jboss server then I do not have any issue however, when I tried to hot-deploy I keep getting the following error: java.lang.UnsatisfiedLinkError: Native Library WEB-INF/lib/libfoo.so already...
2
7457
by: josephx | last post by:
Hello, I got some of these errors listed below after executing an HTTP Post MIDlet on CLDC/MIDP platform, "Nokia S40 DP 2.0 SDK 1.1" and "S40 5th Edition SDK Feature Pack 1" and even for S60's SDK.. the application stops. However, it does work only on "Sun Java(TM) Wireless Toolkit 2.5.1 for CLDC" with the same errors displayed, but the...
4
14704
by: jmitch89 | last post by:
I don't why I get this error: Exception in thread "main" java.lang.NoClassDefFoundError The statement below works just fine: java -cp "appframework-1.0.3.jar;swing-worker-1.1.jar";CurrentStrobe.jar com.visionpro.currentstrobe.CurrentStrobeApp However, the statement below produces the error: java -cp...
1
6738
by: onlinegear | last post by:
HI i am writing this for college i know i have loads of combo boxes with nothing in the i havent got that far yet. but every time i run this is comes up with this erro run: Exception in thread "main" java.lang.NullPointerException at java.awt.Container.addImpl(Container.java:1041) at java.awt.Container.add(Container.java:365) ...
0
7401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7807
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7419
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7756
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5326
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.