Writing Java programs using MyEclipse

Source: Internet
Author: User

MyEclipse is a very useful Java Program development tool, mainly used in Java, Java EE and mobile application development. MyEclipse is very powerful and supports a wide range of support, especially for various open source products.

MyEclipseEnterprise-class work platform is theEclipseidewe can use it in the database andjava EEdevelopment, release, and integration of application servers greatly improve productivity. It is a feature-richjava EEintegrated development environment, including complete coding, debugging, testing and publishing capabilities, full supportHTML,Struts,JSP,CSS,Javascript,Spring,SQL,Hibernate.

Below I will use MyEclipse to write a simplest Java program and run it.

First step: Open MyEclipse Software

Change workspace: Click File→Switch WorkSpace→other→ Browser→ Select a folder under D , and when you click OK, the environment will automatically close.

The first phenomenon: to quote a red fork,

The second phenomenon: ask if we want to go to Software Center (software), tick the checkbox, and click Cancel.

Create a Java Project: Click File→New→java Project

Right-click on the src folder,New→Class

Write the code .

05. After writing, run the program through run (the green triangle icon) and the result will appear on the console console.

A program written with MyEclipse is done!

————————————————————————————————————————————

PS: Add a few myeclipse general settings

No1. Setting the Edit area and console fonts

Open window→preference→general→appearance→colors and Fonts→basic→text Fonts double-click to open Edit

No2. How to display line numbers

Official resolution: Right-click on the left-hand side of the code editing area, and in the pop-up menu, tick how line Numbers

No3. Delete Item

Analysis ; directly Select the item you want to delete, right-click and find Delete , but notice here, do not tick, otherwise the real file on the hard drive will be removed. Then OK

  

No4. How do I import a project??

Parse:File→Import→general, find the longest item, then Browser

  

No5. How to rename a project

Resolution: Select the name of the item you want to modify, press F2on your keyboard, and then make sure you have modified it.

No6. Java Project Organizational Structure

The package Explorer

Classes to manage multiple different functions

The Navigator (Navigator)

Role: Similar to Windows Explorer, the ability to see java files, and to see the compiled class File (this feature can then be selected to open and close in Window-showview).

Writing Java programs using MyEclipse

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.