Developing SWT applications using Eclipse

transelate/JAVA 2011/12/08 00:58
Developing SWT applications using Eclipse
While SWT is integrated as part of the Eclipse plug-in API, for standalone application development it is best to develop against the SWT standalone download. This document will help you get set up.
Eclipse 를 사용한 SWT 어플리케이션 개발.
개별 어플리케이션을 개발 하는데 있어서 Eclipse plug-in API 로 통합하느것이 SWT 를 따로 설치하는데 반하여 개발에 최선의 결과를 가져올 것이다.
이 문서는 설치 하는데 도움을 줄것이다.


First, download the .zip of SWT for your platform from the SWT homepage.
먼저 당신의 플렛폼에 맞는 SWT 의 .zip 파일을 SWT 홈페이지에서 다운 받아라.

The SWT .zip file can then be imported into your workspace. In the File menu, choose Import and select the Existing Projects Into Workspace wizard. (In newer versions of eclipse, you can find Existing Projects Into Workspace in the General category).
SWT .zip 파일은 당신의 workspace 로 불러 들일수 있습니다. File 메뉴에서 Import 를 선택하고 Existing Projects Into Workspace wizard 를 선택하라.(새버전의 eclipse 에서는 Import 에서 General 카테고리에서 찾을수 있을것이다.





Direct the wizard to the location where you downloaded the .zip file. This will create a project called org.eclipse.swt in your workspace.
.zip 파일을 다운로드 받은 위치를 선택한다. 그러면 당신의 work space 에 org.eclipse.swt 라는 프로젝트가 생성 될것이다.





With the SWT project as a dependency, you can now benefit from Eclipse features such as the Javadoc view and code assist.
SWT 프로젝트에 의지함으로서 javaDow view 나 코드 어시스트 같은 Eclipse 특성의 이익을 얻을수 있다.




Now you can run any main class in your project by selecting the class and then selecting Run > Run As > Java Application

자 이제 당신의 프로젝트의 main 클래스를 선택하고 Run > Run As > Java 를 선택 하여 실행 시킬수 있다.


top

Trackback Address :: http://microstrong.pe.kr/tt/trackback/32

  1. cheap NFL jerseys 2012/05/16 20:31 PERMALINKMODIFY/DELETE REPLY

    자료 감사합니다. 잘 쓸게요~ ^ - ^

  2. china wholesale 2012/05/17 14:20 PERMALINKMODIFY/DELETE REPLY

    나는 현재 내가 여기에 게시한이 말한 주제에 내 지식을 향상시킬 수있는 방법을 찾고 있어요. 그것은 내게 당신은 자유롭게 여기에서이 정보를 공유하는 것으로 알고 많은 도움이 않습니다.

Write a comment


MySQL - Tutorial

transelate/Database 2011/11/27 20:45
이글은 http://www.vogella.de/articles/MySQL/article.html 를 번역한 글입니다.

MySQL - Tutorial

Lars Vogel

Version 0.7

Copyright © 2008 - 2009 Lars Vogel

07.10.2009

MySQL

This article explains how to install MySQL and how to create and query a database.
이 글은 MySQL 을 어떻게 설치 하고 하나의 database 를 생성하고 질의 하는지에 대한 설명 이다.

This article uses Java 1.6 and MySQL 5.1.
이 글에서는 Java 1.6 과 MySQL 5.1 을 사용한다.

1. Overview

MySQL is a famous open source database which can be used free of charge. MySQL is a relational database. Web applications frequently are using MySQL for storing persistence data.
MySQL 무료로 사용할수 있는 잘알려진 공개 소스 database 이다. MySQL 은 관계형 database 이다. 웹 어플리케이션은 data 의 지속적인 보관을 위하여 MySQL 을 자주 사용한다.

This article covers the installation of MySQL and the usage of the database.
이 글은 MySQL의 설치와 사용에 대해서 다룬다.

To use MySQL with Java see MySQL and Java Tutorial .
MySQL 과 Java 의 사용은 MySQL and Java Tutorial 를 봐라.

2. Installation

2.1. Windows

Under Windows download the community edition from http://dev.mysql.com/downloads/ . For windows you have installer program available which guides you through the installation process.
Windows 에서 community edition 을 http://dev.mysql.com/downloads/ (페이지) 로부터 내려 받아라. For Windows 에서 설치 과정에서 안내를 받을수 있는 설치 프로그램을 얻을수 있을 것이다.



If you had MySQL previously installed the installation may fail with the following error message:
만약 아래와 같은 메세지 와 함께 설치 사전 작업이 실패를 한다면:

"Access denied for user 'root'@'localhost'".

http://www.vogella.de/articles/MySQL/images/installationfail10.gif

In this case de-install MySQL and remove any MySQL data directory from your computer and try again.
To de-install MySQL use "Add/Remove Programs" in the "Control Panel". That will also remove the windows services.
MySQL 을 제거 하고 관련된 Data 디렉 토리를 삭제한후 재시도를 하라.
재시도는 "Control Panel" 에 있는 "Add/Remove Programs" 을 사용 하라.
윈도우 서비스 역시 제거 될 것이다.


The data directory is located in the folder "C:\Documents and Settings\All Users\Application Data\MySQL".
데이터 디렉토리는 "C:\Documents and Settings\All Users\Application Data\MySQL" 에 위치한다.

2.2. Linux (Ubuntu)

Under Linux (Ubuntu) you can use the following command:
우분투 리눅스 (데비안 계열도 될듯) 은 아래의 명령을 사용하면 된다.
sudo apt-get install mysql-server


The installation will asked you questions regarding your desired installation, e.g. the password to use, etc.
설치는 당신에게 몇가지 물을 것이다. 사용을 위한 패스워드등 (물론 sudo 때문에도 묻겠지...)



3. Connecting to MySQL

Once MySQL is installed and running you can connect to your database and perform commands in MySQL.
설치가 되고 실행을 시키면 당신의 database 에 연결을 해서 명령을 수행할수 있다.

MySQL offers the option to connect to the database via the command line. Under Window, select Start -> Programs -> MySQL -> "your version" ->MySQL Command Line Client. This will a console and ask you for the password of the DB admin.
MySQL 은 연결을 위하여 Command line 을 통하여 사용할수 있도록 제공한다.
Windows 환경에서는 select Start -> Programs -> MySQL -> "your version" ->MySQL Command Line Client 를 사용 한다. 이것은 콘솔 환경 으로 제공 되며 DB admin 패스워드를 묻는다.

Under Unix / Linux you can use the following command:
Unix / Linux 상에서는 아래의 명령어를 사용한다.

mysql db_name -u user -pmypassword

4. Create example database

Start the MySQL command line client and paste the following SQL script into it to create a sample database which we can use as an example.
MySQL 커멘드 라인 클라이언트 를 실행시켜서 아래의 SQL 스크립트를 갖다 붙이면 예제로 사용할수 있는 샘플 데이터 베이스를 생성 시킬수 있다.
-----------------------------------------------------------------
create database feedback;
use feedback;
CREATE USER sqluser IDENTIFIED BY 'sqluserpw';
grant usage on *.* to sqluser@localhost identified by 'sqluserpw';
grant all privileges on feedback.* to sqluser@localhost;

CREATE TABLE COMMENTS (
id INT NOT NULL AUTO_INCREMENT,
MYUSER VARCHAR(30) NOT NULL,
EMAIL VARCHAR(30),
WEBPAGE VARCHAR(100) NOT NULL,
DATUM DATE NOT NULL,
SUMMERY VARCHAR(40) NOT NULL,
COMMENTS VARCHAR(400) NOT NULL,
PRIMARY KEY (ID)
);

INSERT INTO COMMENTS values (default, 'lars', 'myemail@gmail.com','http://www.vogella.de', '2009-09-14 10:33:11', 'Summery','My first comment' );
-----------------------------------------------------------------


5. Further SQL commands

Please see SQL Tutorial for the usage of SQL commands.

6. Thank you

Please help me to support this article:



7. Questions and Discussion

Before posting questions, please see the vogella FAQ . If you have questions or find an error in this article please use the www.vogella.de Google Group . I have created a short list how to create good questions which might also help you.

8. Links and Literature

http://www.mysql.com MySQL homepage

http://dev.mysql.com/downloads/ Download link for MySQL

http://forums.mysql.com/ MySQL forum
top

Trackback Address :: http://microstrong.pe.kr/tt/trackback/31

  1. Dpstream Streamiz 2012/04/03 08:21 PERMALINKMODIFY/DELETE REPLY

    Thanks .

  2. Streaming 2012/04/13 08:22 PERMALINKMODIFY/DELETE REPLY

    Thanks .

Write a comment


◀ PREV : [1] : [2] : [3] : [4] : [5] : .. [15] : NEXT ▶