Java 基本命令操作详解- 转自Sun网站

 

JDK Tools and Utilities

Documentation Contents

 


General

Standard JDK Tools and Utilities

Experimental JDK Tools and Utilities

NOTE - The tools described in this section are unsupported and experimental in nature and should be used with that in mind. They might not be available in future JDK versions.

Troubleshooting Documentation


NOTE - Some tools have separate reference pages for Windows, Linux and Solaris to accommodate minor differences in configuration and usage -- for example, the character used to specify directory separators may be different.

 


General Information

The following documents contain important information you will need to know to get the most out of the SDK tools.

JDK File Structure [Solaris] [Linux] [Windows]
Setting the Classpath [Solaris and Linux] [Windows]
How Classes are Found [Solaris, Linux and Windows]
Tool Changes in Java 2 SDK, v1.4 [Solaris, Linux and Windows]

 


Basic Tools

These tools are the foundation of the JDK. They are the tools you use to create and build applications.

Tool Name Brief Description Links to Reference Pages
javacThe compiler for the Java programming language.[Solaris and Linux] [Windows]
javaThe launcher for Java applications. In this release, a single launcher is used both for development and deployment.
The old deployment launcher, jre, is no longer provided.
[Solaris and Linux] [Windows]
javadocAPI documentation generator.
See Javadoc Tool page for doclet and taglet APIs.
[Solaris and Linux] [Windows]
aptAnnotation processing tool.
See Annotation Processing Tool for program annotation processing.
[Solaris, Linux, and Windows]
appletviewerRun and debug applets without a web browser.[Solaris and Linux] [Windows]
jarCreate and manage Java Archive (JAR) files.
See Java Archive Files page for the JAR specification.
[Solaris and Linux] [Windows]
jdbThe Java Debugger.
See JPDA for the debugger architecture specifications.
[Solaris and Linux] [Windows]
javahC header and stub generator. Used to write native methods.[Solaris and Linux] [Windows]
javapClass file disassembler[Solaris and Linux] [Windows]
extcheckUtility to detect Jar conflicts.[Solaris and Linux] [Windows]


Security Tools

These security tools help you set security policies on your system and create apps that can work within the scope of security policies set at remote sites.

Tool Name Brief Description Links to Reference Pages
keytoolManage keystores and certificates.[Solaris and Linux] [Windows]
jarsignerGenerate and verify JAR signatures.[Solaris and Linux] [Windows]
policytoolGUI tool for managing policy files.[Solaris and Linux] [Windows]

These security tools help you obtain, list, and manage Kerberos tickets.

Tool Name Brief Description Links to Reference Pages
kinitTool for obtaining Kerberos v5 tickets. Equivalent functionality is available on the Solaris operating environment via the kinit tool. For example, for Solaris 8, see the kinit reference page. [Linux] [Windows]
klistCommand-line tool to list entries in credential cache and key tab. Equivalent functionality is available on the Solaris operating environment via the klist tool. For example, for Solaris 8, see the klist reference page. [Linux] [Windows]
ktabCommand-line tool to help the user manage entires in the key table. Equivalent functionality is available on the Solaris operating environment via the kadmin tool. For example, for Solaris 8, see the kadmin reference page.[Linux] [Windows]


Internationalization Tools

This tool helps to create localizable apps.

Tool Name Brief Description Links to Reference Pages
native2asciiConvert text to Unicode Latin-1.[Solaris and Linux] [Windows]


Remote Method Invocation (RMI) Tools

These tools help to create apps that interact over the Web or other network.

Tool Name Brief Description Links to Reference Pages
rmicGenerate stubs and skeletons for remote objects.[Solaris and Linux] [Windows]
rmiregistryRemote object registry service.[Solaris and Linux] [Windows]
rmidRMI activation system daemon.[Solaris and Linux] [Windows]
serialverReturn class serialVersionUID.[Solaris and Linux] [Windows]


Java IDL and RMI-IIOP Tools

These tools are used when creating applications that use OMG-standard IDL and CORBA/IIOP.

Tool Name Brief Description
tnameservProvides access to the naming service.
idljGenerates .java files that map an OMG IDL interface and enable an application written in the Java programming language to use CORBA functionality.
orbdProvides support for clients to transparently locate and invoke persistent objects on servers in the CORBA environment. ORBD is used instead of the Transient Naming Service, tnameserv. ORBD includes both a Transient Naming Service and a Persistent Naming Service. The orbd tool incorporates the functionality of a Server Manager, an Interoperable Naming Service, and a Bootstrap Name Server. When used in conjunction with the servertool, the Server Manager locates, registers, and activates a server when a client wants to access the server.
servertoolProvides ease-of-use interface for the application programmers to register, unregister, startup, and shutdown a server.


Java Deployment Tools

Utilities for use in conjunction with deployment of java applications and applets on the web.

Tool Name Brief Description
pack200Transforms a JAR file into a compressed pack200 file using the Java gzip compressor. The compressed packed files are highly compressed JARs, which can be directly deployed, saving bandwidth and reducing download time.
unpack200Transforms a packed file produced by pack200 into a JAR file.


Java Plug-in Tools

Utilities for use in conjunction with the Java Plug-in.

Tool Name Brief Description with Links to Reference Pages
htmlconverterConverts an HTML page (file) containing applets to the OBJECT / EMBED tag format for Java Plug-in.


Java Web Start Tools

Utilities for use in conjunction with the Java Web Start.

Tool Name Brief Description
javawsCommand line tool for launching Java Web Start and setting various options.
See Java Web Start Guide for more information.


Monitoring and Management Tools

You can use the following tools to monitor JVM performance and resource consumption. The tools described in this section are unsupported and experimental, and should be used with that in mind. They may not be available in future JDK versions.

Platform support:

  • jconsole: all platforms.
  • jps, jstat, and jstatd: all platforms except Windows 98 and Windows ME.

For more information, see Monitoring and Management for the Java Platform.

Tool Name Brief Description
jconsoleExperimental: Java Monitoring and Management Console - JMX-compliant graphical tool for monitoring a Java virtual machine. It can monitor both local and remote JVMs.
jpsExperimental: JVM Process Status Tool - Lists instrumented HotSpot Java virtual machines on a target system.
jstatExperimental: JVM Statistics Monitoring Tool - Attaches to an instrumented HotSpot Java virtual machine and collects and logs performance statistics as specified by the command line options.
jstatdExperimental: JVM jstat Daemon - Launches an RMI server application that monitors for the creation and termination of instrumented HotSpot Java virtual machines and provides a interface to allow remote monitoring tools to attach to Java virtual machines running on the local system.


Troubleshooting Tools

The following tools can be used for specific troubleshooting tasks. The tools described in this section are unsupported and experimental in nature and should be used with that in mind. They may not be available in future JDK versions.

These tools are not currently available on Windows platforms .

Tool Name Brief Description
jinfo Experimental - Configuration Info for Java - Prints configuration information for for a given process or core file or a remote debug server.
jmapExperimental - Memory Map for Java - Prints shared object memory maps or heap memory details of a given process or core file or a remote debug server.
jsadebugdExperimental - Serviceability Agent Debug Daemon for Java - Attaches to a process or core file and acts as a debug server.
jstackExperimental - Stack Trace for Java - Prints a stack trace of threads for a given process or core file or remote debug server.

Refer to the Java TM 2 Platform, Standard Edition 5.0 Trouble-Shooting and Diagnostic Guide which provides descriptions of tools, options, and other items for use in analyzing problems. This document contains suggestions about what to try before submitting a bug report and what data to collect for a report.


Copyright © 2002-2004 Sun Microsystems, Inc. All Rights Reserved.

 
Java Software
























<script src="js/omi/jsc/s_code_remote.js"></script> <script src="http://www-cdn.sun.com/share/metrics/metrics_group1.js"></script>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值