jdk工具

以下内容来自Oracle官网文档说明,仅为方便参考拷贝到此博客。

 

JDK Tools and Utilities

 

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 - The Windows and Solaris, Linux, and OS X references pages for some tools have 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 JDK tools.

Document TypePlatform
JDK File Structure[Solaris, Linux, and OS X] [Windows]
Setting the Classpath[Solaris, Linux, and OS X] [Windows]
How Classes are Found[All supported platforms]

Enhancements

The man page for each tool reflects the latest behavior for that tool, but the following page details the tools changes specific to a release.


Basic Tools

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

Tool NameBrief DescriptionLinks to Reference Pages
appletviewerRun and debug applets without a web browser.[Solaris, Linux, and OS X] [Windows]
extcheckUtility to detect Jar conflicts.[Solaris, Linux, and OS X] [Windows]
jarCreate and manage Java Archive (JAR) files.
See Java Archive Files page for the JAR specification.
[Solaris, Linux, and OS X] [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, Linux, and OS X] [Windows]
javacThe compiler for the Java programming language.[Solaris, Linux, and OS X] [Windows]
javadocAPI documentation generator.
See Javadoc Tool page for doclet and taglet APIs.
[Solaris, Linux, and OS X] [Windows]
javahC header and stub generator. Used to write native methods.[Solaris, Linux, and OS X] [Windows]
javapClass file disassembler[Solaris, Linux, and OS X] [Windows]
jdbThe Java Debugger.
See JPDA for the debugger architecture specifications.
[Solaris, Linux, and OS X] [Windows]
jdepsJava class dependency analyzer[Solaris, Linux, and OS X] [Windows]

Security Tools

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

Tool NameBrief DescriptionLinks to Reference Pages
keytoolManage keystores and certificates.[Solaris, Linux, and OS X] [Windows]
jarsignerGenerate and verify JAR signatures.[Solaris, Linux, and OS X] [Windows]
policytoolGUI tool for managing policy files.[Solaris, Linux, and OS X] [Windows]

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

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

Internationalization Tools

This tool helps to create localizable applications.

Tool NameBrief DescriptionLinks to Reference Pages
native2asciiConvert text to Unicode Latin-1.[Solaris, Linux, and OS X] [Windows]

Remote Method Invocation (RMI) Tools

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

Tool NameBrief DescriptionLinks to Reference Pages
rmicGenerate stubs and skeletons for remote objects.[Solaris, Linux, and OS X] [Windows]
rmiregistryRemote object registry service.[Solaris, Linux, and OS X] [Windows]
rmidRMI activation system daemon.[Solaris, Linux, and OS X] [Windows]
serialverReturn class serialVersionUID.[Solaris, Linux, and OS X] [Windows]

Java IDL and RMI-IIOP Tools

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

Tool NameBrief DescriptionLinks to Reference Pages
tnameservProvides access to the naming service.[Solaris, Linux, and OS X] [Windows]
idljGenerates .java files that map an OMG IDL interface and enable an application written in the Java programming language to use CORBA functionality.[Solaris, Linux, and OS X] [Windows]
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.[Solaris, Linux, and OS X] [Windows]
servertoolProvides ease-of-use interface for the application programmers to register, unregister, startup, and shutdown a server.[Solaris, Linux, and OS X] [Windows]

Java Deployment Tools

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

Tool NameBrief DescriptionLinks to Reference Pages
javapackagerPerforms tasks related to packaging and signing Java and JavaFX applications.[Linux and OS X] [Windows]
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.[Solaris, Linux, and OS X] [Windows]
unpack200Transforms a packed file produced by pack200 into a JAR file.[Solaris, Linux, and OS X] [Windows]

Java Web Start Tools

Utilities for use in conjunction with Java Web Start.

Tool NameBrief DescriptionLinks to Reference Pages
javawsCommand line tool for launching Java Web Start and setting various options.
See Java Web Start Guide for more information.
[Solaris, Linux, and OS X] [Windows]

Java Troubleshooting, Profiling, Monitoring and Management Tools

Tool NameBrief DescriptionLinks to Reference Pages
jcmdJVM Diagnostic Commands tool - Sends diagnostic command requests to a running Java Virtual Machine.[Solaris, Linux, and OS X] [Windows]
jconsoleA JMX-compliant graphical tool for monitoring a Java virtual machine. It can monitor both local and remote JVMs. It can also monitor and manage an application.
See Monitoring and Management for the Java Platform for more information.
[Solaris, Linux, and OS X] [Windows]
jmcThe Java Mission Control (JMC) client includes tools to monitor and manage your Java application without introducing the performance overhead normally associated with these types of tools.[Solaris, Linux, and OS X] [Windows]
jvisualvmA graphical tool that provides detailed information about the Java technology-based applications (Java applications) while they are running in a Java Virtual Machine. Java VisualVM provides memory and CPU profiling, heap dump analysis, memory leak detection, access to MBeans, and garbage collection. See Java VisualVM for more information.[Solaris, Linux, and OS X] [Windows]

Java Web Services Tools

Tool NameBrief DescriptionLinks to Reference Pages
schemagenSchema generator for Java Architecture for XML Binding.[Solaris, Linux, and OS X] [Windows]
wsgenTool to generate JAX-WS portable artifacts.[Solaris, Linux, and OS X] [Windows]
wsimportTool to generate JAX-WS portable artifacts.[Solaris, Linux, and OS X] [Windows]
xjcBinding compiler for Java Architecture for XML Binding.[Solaris, Linux, and OS X] [Windows]

Monitoring Tools

You can use the following tools to monitor JVM performance statistics. 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.

These tools are supported on all platforms except Windows 98 and Windows ME.

Tool NameBrief DescriptionLinks to Reference Pages
jpsExperimental: JVM Process Status Tool - Lists instrumented HotSpot Java virtual machines on a target system.[Solaris, Linux, and OS X] [Windows]
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.[Solaris, Linux, and OS X] [Windows]
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.[Solaris, Linux, and OS X] [Windows]

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.

Some of these tools are not currently available on Windows platforms.

Tool NameBrief DescriptionLinks to Reference Pages
jinfoExperimental - Configuration Info for Java - Prints configuration information for a given process or core file or a remote debug server.[Solaris, Linux, and OS X] [Windows]
jhatExperimental - Heap Dump Browser - Starts a web server on a heap dump file (for example, produced by jmap -dump), allowing the heap to be browsed.[Solaris, Linux, and OS X] [Windows]
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.[Solaris, Linux, and OS X] [Windows]
jsadebugdExperimental - Serviceability Agent Debug Daemon for Java - Attaches to a process or core file and acts as a debug server.[Solaris, Linux, and OS X] [Windows]
jstackExperimental - Stack Trace for Java - Prints a stack trace of threads for a given process or core file or remote debug server.[Solaris, Linux, and OS X] [Windows]

Refer to the Java™ SE Troubleshooting web site for descriptions of tools, options, and other information to use in analyzing problems. The documents at this site contain suggestions about what to try before submitting a bug report and what data to collect for a report.


Scripting Tools

The following tools can be used to run scripts that interact with the Java platform.

Tool NameBrief DescriptionLinks to Reference Pages
jjsRuns the Nashorn command-line script shell.[Solaris, Linux, and OS X] [Windows]
jrunscriptExperimental - Script shell for Java - Runs a script. This tool is unsupported and experimental in nature and should be used with that in mind. It might not be available in future JDK versions.[Solaris, Linux, and OS X] [Windows]

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值