Build a Java development environment in a Linux environment

Source: Internet
Author: User
Construct a Java development environment in a Linux environment-general Linux technology-Linux programming and kernel information. The following is a detailed description. Author: Cao jianghua

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.

Participate in more JAVA Development, just in the JAVA Development Community

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.