473,382 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

SWT Extension toolKit - java.lang.UnsatisfiedLinkError

Ganesh9u
Hi All,

import org.sf.feeling.swt.win32.extension.hook.Hook;
import org.sf.feeling.swt.win32.extension.hook.data.HookD ata;
import org.sf.feeling.swt.win32.extension.hook.data.Mouse HookData;
import org.sf.feeling.swt.win32.extension.hook.listener.H ookEventListener;

public class HotMouse
{

public static void main(String[] args) {
Hook.MOUSE.addListener(new HookEventListener() {
public void acceptHookData(HookData hookData) {
if (hookData != null)
{
System.err.println(((MouseHookData)hookData).getPo intX()"," ((MouseHookData)hookData).getPointY());
}
if (hookData.getWParam() == 513) { System.out.println("left button pressed");// left button pressed
} else if (hookData.getWParam() == 514) { System.out.println("left button released");// left button released
} else if (hookData.getWParam() == 516) { System.out.println("right button pressed");// right button pressed
} else if (hookData.getWParam() == 517) { System.out.println("right button");// right button
} else if (hookData.getWParam() == 519) { System.out.println("middle button 519");// middle button
} else if (hookData.getWParam() == 520) { System.out.println("middle button 520");// middle button
}
}
});
Hook.MOUSE.install();
}

}


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.UnsatisfiedLinkError: no swt-extension-win32 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.sf.feeling.swt.win32.internal.extension.Extens ion.<clinit>(Extension.java:42)
at org.sf.feeling.swt.win32.internal.extension.EventO bject.<init>(EventObject.java:34)
at org.sf.feeling.swt.win32.extension.hook.Hook$HookE ventLoop.run(Hook.java:328)
at java.lang.Thread.run(Unknown Source)

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

-Thanks In Advance..
Aug 24 '09 #1
1 4323
JosAH
11,448 Expert 8TB
@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.path' 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
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...
0
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
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...
3
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...
1
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
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...
2
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...
4
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...
1
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.