Configure the Java Development Environment in ultraedit

Source: Internet
Author: User
Tags ultraedit

IDE (integrated development environment) is not recommended when learning Java at the beginning, so javac and Java are facing the command line all day, so that the command line is also required for each debugging, so everyone will choose notepad enhancement tools such as ultraedit or editplus.CodeHighlighted, and supports configuration of some tools. Next I will briefly introduce the configuration of the Java Development Environment in ultraedit. My ultraedit version is 14.20, and other versions may be slightly different:

1. view the help document in ultraedit:

You have set the command to run a compiler and want to call the compiler in the file you are currently editing. But you can still call the compiler after changing the file to a new name. The compiler is c: \ comp \ compiler.

 

Specify the following commands in the dialog box:

 C: \ comp \ compiler % F

 

When this command is executed, % F is replaced with the full path, file name, and extension of the file in the active window, which will be saved before the command is executed.

 

The following command can pass a part of the complete file name:

 

% P path only ("C: \ project \ test \")

% N only file name ("test ")

% E only extension (". c ")

 

% P % N % E equals % F, which is in the above example ("C: \ project \ test. c ").

 

NOTE: If % F, % P, % N, and % E are lowercase letters, the file name should be passed as a long file name, and quotation marks should be added, for example, "% F" or "% P % N. If % F, % P, % N, and % E are uppercase letters, the passed file name and path will be converted to the "8.3" Short file name format to obtainProgramMaximum compatibility.

 

2. Run ultraedit and select "advanced-> tool configuration ",
Command Line: javac.exe % N % E,
Working directory: % P,
Enter "Java compilation" in the menu item name"

Select "Save all files first" in the options"
Select "output to list box" and "Capture output" in the output, and then select insert.

3. The "Java" RunTime filling method is roughly the same as the "Java compilation" method.

Command Line: java.exe % N

Working directory: % P

Enter "Java Run" in the menu item name"

Select "Save all files first" in the options"
Select "output to list box" and "Capture output" in the output, and then select insert.

 

The above is the configuration process. After the configuration is successful, the configured menu is generated under the "advanced" menu with a shortcut. The first menu is Ctrl + shit + 0 by default, the second Ctrl + shit + 1, and so on.

Create the test. Java file and enter the following content:

  1   Public     Class Test {
2 Public Static Void Main (string ARGs [])
3 {
4 System. Out. println ( " Hello World " );
5 }
6 }
7  

Then select "Java compilation". If it is not displayed in the Windows output window, no error is displayed. Then select "Java Run" to view the Hello world result.

 

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.