Common Java Development Tools

Source: Internet
Author: User
Tags ultraedit
1.5 Common Java Development Tools

This chapter discusses how to use Java to compile network applications.Program. Many programmers are afraid of the word "network", because it means complexity, workload, and the resulting insecurity. However, Java's network functions make this worry redundant. With it, programmers can even write programs on the network transparently. This chapter describes Java's network functions and general network program implementation through some typical examples. 1. Develop tools and software

<! --
Function displayin ()
{
If (Dian. style. Display = 'None ')
DIAN. style. Display = '';
Else Dian. style. Display = 'none'
}
// -->
1. use a common text editor, such as edit, notepad, ultraedit, Kawa, and sourceinsight. For Beginners, use a common text editor or an editor with a simple integrated development and debugging environment, such as ultraedit, Kawa, this helps us to focus more on the Java language rather than the complex integration tools.

2. java teaching software, such as bluej, is a graphic interactive free software developed by Monash, Australia. It is specially designed for Java teaching and is also suitable for development, it is written by 100% pure Java, now has the Chinese and related technical documents, can be obtained from the following web site: http://www.buluj.org or Tsinghua University http://java.cs.tsing.edu.cn. 3. integrated development environment (IDE), suitable for large-scale project development.

2. Development Environment Settings

<! --
Function displayin1 ()
{
If (dian1.style. Display = 'None ')
Dian1.style. Display = '';
Else dian1.style. Display = 'none'
}
// -->
The following uses jdk1.3 windows as an example to describe the development environment settings. Suppose JDK is installed in the C: jdk1.3 directory.

1. When the platform is Windows 9x,

Modify the path and classpath variables of the autoexec. BAT file in the system root directory, for example:

Set Path = % PATH %; C: \ jdk1.3 \ bin

Set classpath =.; C: \ jdk1.3 \ Lib

"." In classpath indicates that JDK can be executed in any current directory. After saving the disk, execute autoexec. bat again to complete the settings.

2. When the platform is Windows2000 or WindowsNT,

You need to modify the environment variable, including adding classpath to the environment variable and modifying the original path, the setting method is to go to "Control Panel" | "system" | "advanced" | "environment variable" in the system variables, find the path, and click "edit" to set C: add \ jdk1.3 \ bin to the backend. Click "new", add the new environment variable classpath, classpath =.; C: \ jdk1.3 \ Lib, and click "OK.

3. After setting,

In the DOS window, press Java or javac and press Enter. If the usage parameter prompt is displayed, the installation is correct. If any problem occurs, check whether the path is set correctly. If the local environment is Chinese, some versions of jdk1.3 have a path name problem. You can solve this problem by modifying the Registry by "starting" | "running" | entering Regedit to enter the registry, find the HKEY--LOCAL--MACHINE | SOFTWARE | external oft and rename "Java Runtime Environment" to Java Runtime Environment.

4. Java2 SDK Development Kit

Some executable applications provided by Java 2 are stored in the bin directory of JDK, providing tools for development and testing.

1. javac: Java compiler.

2. Java: Java application execution engine. The class name can be followed by one or more string parameters.

3. javadoc: API text generator. Generate an API document in HTML format for the current class.

4. appletviewer: Small application browser.

5. jar: a Java archive file archiving tool that can be used to compress class files and files in other formats, such as audio files, into one file, so as to facilitate program introduction and network transmission, java provides some system-level jar files, such as tools in the lib directory. jar, DT. jar, etc. You can use the jar tool to compile. package the class file. JAR file, and copy it to the lib directory of JDK for use.

Example: jar CVF myjar. Jar class1.class class2.class

If the specified package is displayed in the defined class or interface, package the package in the upper-level directory of the top-level package.

For example, Java CVF pack \ myjar. Jar pack \ *. Class;

You can also add a manifest file to archive the Directory and description of the original file.

For example, use a configuration file "mymanifest" to archive all files in the foo/directory to an archive file named classes. jar: jar cvfm classes. Jar mymanifest-C Foo /.

6. jdb: Java debugging tool debugger.

7. javah: the header or stub file of C, used to write local methods.

8. javah: The Parser for class files.

9. extcheck: Determine and detect jar conflicts.

10. rmic: Generate stubs and frameworks for remote object calls.

11. rmiregistry: provides remote object registration service.

12. rmid: The system background program of the remote method.

13. serialver: return the serialization version number of the class.

14. native2ascii: converts locally encoded text files into unicode encoded files.

15. keytool: tool used to identify keys and keyboards.

16. jarsigner: Generate and identify the JAR file signature.

17. policytool: The management policy file of the graphical user interface tool.

18. tnameserv: provides an accessible CORBA Naming Service.

19. idlj: generate a. Java file so that it can be reflected in an omg idl Interface and enable an application to write data to a Java program using the CORBA function.

20. unregbean: a Java Plug-in tool.

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.