Myeclipse standard project establishment

Source: Internet
Author: User

Myeclipse standard project establishment

The myeclipse standard project generally contains the following files:

 

 

 

 

Library files to be used are stored in Lib,

SRC is a source code file, such as A. Java

Bin is a compiled binary file, usually a. Class

Pay attention to an important project file. classpath, which guides myeclipse how to load files in this project.

Generally, the steps for creating a standard project are as follows:

(1) create a project

(2) create a source folder named Src in the project (source folder) named SRC (if this folder already exists in the project, you do not need to create it)

 

(3) create a new package in the source code folder, for example, luceneppt or A. B. C. D. You can create a class in the package, right-click the package, and add a class.

 

(4) add an external Library:

Right-click the project name and create a folder named lib

Put the library file you want to use in the program in the Lib folder *. jar, right-click the project, build path, ---> Configure build path ---> libraries ----> Add jars, select the Lib folder of the project, and add all the library files in the folder. After everything is okay, the external library is added to the project.

At this point, you can view the. classpath file content as follows:

<? XML version = "1.0" encoding = "UTF-8"?>

<Classpath>

<Classpathentry kind = "src" Path = "src"/>

<Classpathentry kind = "con" Path = "org. Eclipse. jdt. Launching. jre_container"/>

<Classpathentry kind = "lib" Path = "lib/lucene-core-2.9.1.jar"/>

<Classpathentry kind = "lib" Path = "lib/poi-3.5-FINAL-20090928.jar"/>

<Classpathentry kind = "output" Path = "bin"/>

</Classpath>

Therefore, you can manually modify the. Class file to add external crying. Note that the Lib PATH uses the relative path.

(6) Right-click the project name, refresh, and OK. The myeclipse directory is as follows:

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.