Eclipse 3.7 3.x swt/jface development environment build

Source: Internet
Author: User
Tags win32

1. Preparation work

1.1. Download Eclipse

http://www.eclipse.org/downloads/

The current version is Eclipse-jee-indigo-sr1-win32

Extract to D:\java\ide\eclipse-jee-indigo-SR1-win32


1.2. Download SWT

http://eclipse.org/swt/

Download Win32 version, the result is a zip file


2, Import ORG.ECLIPSE.SWT Project

Run Eclipse, click in the menu

File-> import-> general-exsiting projects to workspace-> next-> Select Archive file-> Select the downloaded text--click Browse , the project will appear Org.eclipse.swt->next

Import successful


3. New SWT Project

File-> new-> javaproject ...

Right-click Project Properties-> Java build path-> projects-> Point Add, add ORG.ECLIPSE.SWT Project

OK, I can write the SWT program.


4. Join JFace Support

Same 3

Properties-> Java Build path->libraries-> add external JARs. or add Library

Add the following jar package: (Jar pack is found in the plugins subdirectory of the Eclipse installation directory)

Org.eclipse.core.commands_xxx.jar

Org.eclipse.core.runtime_xxx.jar

Org.eclipse.equinox.common_xxx.jar//Must be added, or you will report java.lang.noclassdeffounderror:org/eclipse/core/runtime/ Iprogressmonitor

Org.eclipse.jface_xxx.jar

Org.eclipse.jface.text_xxx.jar

Org.eclipse.osgi_xxx.jar


In order to solve the problem of jface Chinese, we should add

Org.eclipse.jface.nl1_3xx.jar

Refer to Http://www.cnblogs.com/jifeng/archive/2011/10/15/2213615.html


Ok

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.