java ue_使用UEStudio开发Java程序

Quickstart guide: Use UEStudio to develop Java applications

If you are a Java developer looking for an alternative development environment, then you came to the right place. UEStudio natively supports over 30 popular compilers, one of which is Java.

Step 1: Download the compiler

In order to create Java Applications, you will need to download/install the Java SDK (Software Development Kit). You may download the SDK from the following URL:

For the purposes of this tutorial, we are using the 1.4.2 development kit.

Step 2: Install the compiler

After downloading the installer, run the executable to install the SDK.

Step 3: Start a Project

After you have installed the Java SDK, you can now get started with UEStudio. UEStudio offers the ability to create a "new project using templates" or "create a new project".

If you do not wish to create a "new project using templates" but would prefer to use existing code, select the option for "create a new project". Proceed to Step 4 below.

If you wish to create a "new project using templates" select the option for "new project using templates". Proceed to Step 5 below.

Step 4: Using existing code

For this example, the file which we will be using to create a Java Console Application is "HelloWorld.java":

java_quickstart.png

From the Project menu, select the option for "create a new project".

java_quickstart1.png

Name and Save the project. For the purposes of this Power Tip, we will use "HelloWorld". Project Settings: Files/Folders

After saving your project, you will be presented with the Project Settings dialog. The dialog is also accessible from within the Project menu.

java_quickstart2.png

To add files to your project, click on the Add File button, then browse and add the appropriate files. When you are finished, you should see something similar to:

8740f3c5892efc120084522136425a9c.png

Now that you have added your files/folders, click on the Settings tab.

Project Settings: Settings In order to compile the code, you must make your project "Compilable". After you enable this, the "Set/Change Compiler" and "Compiler Options" will be enabled.

f3ad59ee18a262d274215efe50b2438c.png

Click on the "Set/Change Compiler" button and choose the "Java Compiler". Because we are working with a console appliction, choose the "Console Application" rather than the Windows Application.

1ba6fe8cda039e908e670b55ee6b6e8c.png

The option you select may vary depending on your code. Click OK to set your Compiler.

You can additionally edit the compiler options or configuration, however that is not covered in the scope of this powertip. Please see the UEStudio Help for further information regarding this.

After you have closed the "Set/Change Compiler" dialog, you will need to make an additional configuration change to the compiler options. Click on the "Compiler Options" button in the Project Settings dialog.

Under the "Compiler Options" heading, because we installed the Java 1.4 SDK, we will need to change the "Target VM" from 1.5 to 1.4. You can change this by double-clicking on the Target VM key, selecting the 1.4 option, then click OK.

ebb2c1afcf7a8c882747c01588726234.png

You are now finshished configuring the project, so you may click Close, to close the Project Settings dialog.

You may now proceed to Step 6.

Step 5: Using a template

Select the option for "create project using templates".

java_quickstart7-1.png

Select the "Java Compiler" in the Compilers list and "Windows Application". Then type your project's name in the Project Name field.

java_quickstart7.png

Click "Create". Your project will be created as MyJavaApp.

Step 6: Build

Now that you have configured the project you are ready to build it! Click on the "Build" icon on the Build toolbar, or go to the Build menu and select Build.

java_quickstart8.png

UEStudio will build your application and the Output Window will indicate when the build is complete. You will also see the output window list any errors/warnings encountered during the build:

java_quickstart9.png

Step 7: Run

To run the application, click on the Run button on the build toolbar.

java_quickstart10.png

From the example above, "Using existing code", the console application launches and runs appropriately.

java_quickstart11.png

From the example above, "Using a template", the windows application launches and runs appropriately.

java_quickstart12.png

backtopt.jpg

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值