Editplus java programming environment Configuration

Source: Internet
Author: User

Quickly build a java Development and running environment in editplus, a simple tutorial on building the editplus java environment, and the jdk installation and environment variable setting process is suitable for beginners to practice.

Use Editplus to configure the JAVA editing Environment

First: recognize groups

1. Open Editplus and select "tools-> Parameters". In the displayed window, select "user tools"

2. Click the Group name and change "Group 1" to java (you can do it without changing it ).

A Group refers to a tool Group. You can use a shortcut key to switch between tool groups.

By default, the keys of programs in the group are ctrl1 and ctrl2. .. (you can change the keys by moving up or down)

1. Configure the java compiling environment

1. Click "add tool-> application ".

2. Menu text: "Java compilation" -- the menu text displayed on EditPlus

3. Command: javac (assuming java environment variables have been set) -- you can also directly specify javac.exe (jdk/bin/javac.exe)

4. parameters: drop-down menu "file name", -- the file name generated during compilation. Here, the file name to be compiled is used as the file name.

5. Initial Directory: Select "file directory" from the drop-down menu; -- storage location of the compiled files (the current directory is the storage path)

6. Check Before "Capture output. -- Print the compilation (error or other) in the output window)

This completes the configuration of "Java compilation ".

Ii. configuring Java User tools in EditPlus

1. Click Tools in the menu bar and select configure user tools ].

2. Click the Add tool button on the left and select the program option.

3. First, configure the compile function. As shown in the following figure, the menu is the compile function, and the command is the path of javac.exe. Select capture output ].

4. Then, configure the "run" function. As shown in the following figure, the menu is "run" and the command is the path of java.exe. Select "Capture output ].

After the configuration is successful, you can test it through the HelloWorld program. Ctrl + 1 indicates compilation, and Ctrl + 2 indicates running.

3. Write a small program and test it:

Try a small program.

Click "tool"-> javac compilation, and then click "tool"-> java to run it.

You can also use the shortcut keys Ctrl + 1 and Ctrl + 2 to compile and run the program.

4. Configure shortcuts

4.1 set the shortcut key for IDE_java

Choose parameter settings> tool> keyboard> tool> modify toolgroup1 shortcut key (if you have not configured other user tools, the default toolgroup1 is the IDE_java we just set)

4.2 set the shortcut keys for comp and run

Choose parameter settings> tool> keyboard> tool> modify tooluser1 shortcut key (if you have not configured other user tools, the default tooluser1 is the one we just set (comp ), also modify the shortcut key of toolusr2 (run)

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.