The general Linux technology-Linux programming and kernel information about SWT running in Linux. The following is a detailed description. Author: Dragon tornado
Taking Eclipse3.2.1 + JDK1.6.0 as an example, if the SWT program runs in an independent Java program, an exception occurs:
Exception in thread "main" java. lang. UnsatisfiedLinkError: no swt-gtk-3235 in java. library. path
On the Win32 platform, you can import the dll files related to swt, as should Linux. I checked the function of the java. library. path variable on the Internet. This attribute was used to tell some Java library storage directories. Available
System. getProperties (). list (System. out );
Or System. out. println (System. getProperty ("java. library. path "));
View the specified directory of the variable.
Install eclipse/plugins/org. eclipse. swt. gtk. linux. decompress x86_3.2.1.v3235.jar to obtain a series of libswt *. so files, which are linked library files on the Linux platform and copied to java. library. path. (In the current machine environment, the/usr/java/jdk1.6.0/jre/lib/i386/client is used.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service