Build a Java development environment in a Linux environment

Source: Internet
Author: User
At present, various integrated development environments (IDES) in the Java development field are shown in full bloom, from Borland's JBuilder to IBM's visualage for Java, WebSphere Studio, and Oracle's jdeveloper, sun's forte ?? For Java ??, Togethersoft's together, BEA's WebLogic, webgain's visual caf, Allaire's jrun. There are more than 10 types of open-source eclipse and netbeans. So many types of IDE are flourishing in the Java Development Tool family. These IDE development environments are quite different, but most of them are on the Windows platform. Here I will introduce a Java visual development environment (IDE) forte in Linux desktop environment, which can better reflect the spirit of open source.

I. Basic Knowledge:

Forte ?? For Java ??, The Community version is a Java integrated development environment (IDE) written in the Java language ). It is a cross-platform (Linux, Windows) development tool with the ability to develop client and server applications. Forte makes full use of the powerful functions of the Java language, A dynamic and responsive development environment is provided for you. Forte ?? For Java ?? IDE supports Simple Object Access Protocol (SOAP) and Web Service Description Language (wdsl ). Forte ?? For Java ?? The various Release versions can be obtained from: java.sun.com, also go to Sun's official website to download, some other websites provide ForteCE-FCS-2.noarch.rpm installation package is very unstable to use.

II. Introduction to forte for Java:

1. atomicity: Forte ?? For Java ?? Is a structured system. All ide functions, such as editing, debugging, Gui generation, and Enterprise Java Bean support, are independent modules. Forte ?? For Java ?? Update center can help you download the latest module from Sun's official site.

2. customization: Forte ?? For Java ?? With good configurability, you can easily change the graphic user interface. By configuring menus, toolbar, and work area, you can generate a graphical user interface with your own development style.

3. Scalability: Forte ?? For Java ?? It provides a complete set of open APIs (forte itself is developed by this set of Apis). Therefore, regardless of the version of forte, you can make full use of this mature development platform.

4. provides templates for developing session beans (stateful or stateless) and entity beans.

5. Includes bean-managed persistence (BMP) and container management storage (CMP ).

6. generate the required interface and class --- bean Local interface, remote interface, and implementation class ).

7. Coordinate and simplify bean development through "logical" bean.

3. Install software:

Linux operating platform hardware and software requirements:

(1) forte has high requirements for system software: Java 2 SDK, Standard Edition, V. version 1.3 or above, the latest version of the j2sdk-1_3_0_02, web site download: http://java.sun.com/j2se/1.3/ system kernel: 2.4.7 has installed Java virtual machine, JDK and JRE, kernel version 2.2 or above, Kde 2.0, X Window System xfree86 3.3.x or above, desktop resolution less than 640 × 480, Desktop color at least 16 bits.

(2) Hardware requirements: 350 MHz Pentium II or above, memory 128 MB, hard disk space 110 MB, Display memory 4 MB.

Iv. Detection System:

Before installing forte, check the system's kits:

JDK: used to compile and execute Java programs.

Java vitual machinc: enables Java to run on different platforms without re-compiling.

JRE (Java Runtime Environment): Java Runtime Environment.

# Rpm-Qa | grep JDK; rpm-Qa | grep JRE

V. installation and configuration:

(1) log on to the Linux system x-window as root and open a terminal

# Rpm-IVH Forte-2.0-1.i386.rpm

(2) the system automatically creates an executable program in:/opt/forte4j/bin/runide. To create a shortcut on the desktop, right-click link to application and choose Add/opt/forte4j/bin/runid to the execution menu,

The forte4j directory contains several main subdirectories, including/beans,/bin,/development,/docs,/javadoc,/lib,/modules,/sources, And/system;

1./beans: Installed in Forte ?? For Java ?? .

2./bin: Contains ide. cfg and some important execution files and batch files.

3./Development: by default, the local directory is mounted, using Forte ?? For Java ?? Create a project file.

4./docs: Forte ?? For Java ?? Place the main file.

5./javadoc: directory for accessing the javadoc file.

6./lib: Forte ?? For Java ?? The main function library is located.

7./modules: directory where the module is located.

8./sources: directory where the original code is stored.

9./system: Contains log files.

6. Run the program:

(1) Click the Forte shortcut with the mouse. The first time you start forte, the system automatically configures the JSP application environment. When the red progress bar in the startup flag is reached. (See figure-3)

7. Forte consists of several parts: user interface ):

1. Main Window (main form): Forte ?? When running for Java, the main form is opened and continues until the Forte operation ends. The main form can be regarded as the control center of the entire integrated development environment. Most important operations and commands are related to it. It can be divided into four independent control groups: menu bar, toolbar, work area, and status bar. The main menu of the primary menu is: file, edit, view, project, build, and debug) tools, windows, and help ).

2. Explorer (Resource Manager): Forte ?? The resource manager of for Java provides users with an interface for managing all objects and files and an entry to various programming functions. Users can edit classes, manage projects, modify object properties, and connect to various data sources.

3. Editor: the form Editor provides users with the ability to visually develop user interfaces. You can select various standard components from component palette, such as menus, scroll bars, and buttons, and place them directly in the form editor. Forte ?? For Java automatically generates the corresponding Java code to complete the component design and attribute settings (Java code can be seen from the editor window ). The form editor can also call Java layout explorer to change the appearance of each component on the form to generate a custom interface.

4. Project settings window (Project Settings form): the form Editor provides users with the function of visually developing the user interface. You can select various standard components from component palette, such as menus, scroll bars, and buttons, and place them directly in the form editor. Forte ?? For Java automatically generates the corresponding Java code to complete the component design and attribute settings (Java code can be seen from the editor window ). The form editor can also call Java layout explorer to change the appearance of each component on the form to generate a custom interface.

5. Project settings window and Global Options windows ):

These two forms are used to configure the IDE. Project settings window manages settings related to a single project, such as the compiler type and Java resources. Global Options windows configures the entire integrated IDE development environment.

6. workspaces (workspace): Forte ?? For Java ?? Introduce the concept of workspace to manage forms and tools. The workspace is located at the bottom of the main form and has five tabs: editing, Gui editing, browsing, running, and debugging ). Each option card has a set of forms corresponding to a specific step in the application development process. By default, IDE automatically opens the GUI editing workspace when you open a visual form. When you run an application, IDE automatically switches to the running workspace.

8. References:

Some user manuals can be downloaded for free on the home page of Sun China before work starts, these documents are very detailed, to facilitate the download link: ftp://docs-pdf.sun.com/816-1409/816-1409.pdf: Forte ?? For Java ??, Enterprise editiontutorial contains system requirements, installation programs, multi-user installation methods, command column conversion, installation subdirectories, and installation of file systems where jar or ZIP files are mounted as javadoc. Http://docs-pdf.sun.com/816-1408/816-1408.pdf. Forte ?? For Java ??, Community editiongetting started guidecommunity mainly involves two aspects: one is Forte ?? For Java ?? R2 differs from the previous version. For example, the import project function is enhanced, the fastjavac editor is used as the preset Editor, The jar package module is added, the source editor is added, and the JSP module and the CVS module are enhanced, there are also a variety of changes; the second is the release of technical notes, such as system requirements, performance optimization techniques, extensibility and application interfaces, project removal, known bugs, and so on. Edition does not include the integration of source code control, database ing, and pointbase databases contained in Internet edition. However, this version provides a powerful JSP editing and testing environment. All three versions can run on Windows, Solaris, or other Linux operating systems.

Sun ONE (Sun open net evironment) is a network service strategy released by Sun to provide enterprises with web creation, assembly, and Configuration Services. The Sun ONE framework includes many tools and technologies, such as Forte ?? For Java ?? And forte ESP, create, assemble, integrate, and distrile Web Services for end users. Forte ?? For Java ?? Based on the open architecture, it is designed to be easy to integrate with other tools, such as Macromedia Dreamweaver and Adobe golive web design tools and software such as application server developed by isV.
 

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.