文档章节

JDK中的工具一览

五大三粗
 五大三粗
发布于 2015/11/18 10:47
字数 1432
阅读 11
收藏 1

General Information

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

Document Type Platform
JDK File Structure [Solaris] [Linux] [Windows]
Setting the Classpath [Solaris and Linux] [Windows]
How Classes are Found [Solaris, Linux and Windows]

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 Name Brief Description Links to Reference Pages
appletviewer Run and debug applets without a web browser. [Solaris and Linux] [Windows]
apt Annotation processing tool.
See Annotation Processing Tool for program annotation processing.
[Solaris, Linux, and Windows]
extcheck Utility to detect Jar conflicts. [Solaris and Linux] [Windows]
jar Create and manage Java Archive (JAR) files.
See Java Archive Files page for the JAR specification.
[Solaris and Linux] [Windows]
java The 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]
javac The compiler for the Java programming language. [Solaris and Linux] [Windows]
javadoc API documentation generator.
See Javadoc Tool page for doclet and taglet APIs.
[Solaris and Linux] [Windows]
javah C header and stub generator. Used to write native methods. [Solaris and Linux] [Windows]
javap Class file disassembler [Solaris and Linux] [Windows]
jdb The Java Debugger.
See JPDA for the debugger architecture specifications.
[Solaris and Linux] [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 Name Brief Description Links to Reference Pages
keytool Manage keystores and certificates. [Solaris and Linux] [Windows]
jarsigner Generate and verify JAR signatures. [Solaris and Linux] [Windows]
policytool GUI 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
kinit Tool 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]
klist Command-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]
ktab Command-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 Name Brief Description Links to Reference Pages
native2ascii Convert text to Unicode Latin-1. [Solaris and Linux] [Windows]

Remote Method Invocation (RMI) Tools

These tools help to create applications that interact over the Web or other network.
Tool Name Brief Description Links to Reference Pages
rmic Generate stubs and skeletons for remote objects. [Solaris and Linux] [Windows]
rmiregistry Remote object registry service. [Solaris and Linux] [Windows]
rmid RMI activation system daemon. [Solaris and Linux] [Windows]
serialver Return 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
tnameserv Provides access to the naming service.
idlj Generates .java files that map an OMG IDL interface and enable an application written in the Java programming language to use CORBA functionality.
orbd Provides 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.
servertool Provides 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
javafxpackager Packages JavaFX applications for deployment. See Deploying JavaFX Applications for more information.
pack200 Transforms 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.
unpack200 Transforms a packed file produced by pack200 into a JAR file.

Java Web Start Tools

Utilities for use in conjunction with Java Web Start.
Tool Name Brief Description
javaws Command line tool for launching Java Web Start and setting various options.
See Java Web Start Guide for more information.

Java Troubleshooting, Profiling, Monitoring and Management Tools

Tool Name Brief Description
jcmd JVM Diagnostic Commands tool - sends diagnostic command requests to a running Java Virtual Machine. [Solaris and Linux] [Windows]
jconsole A 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.
jmc The 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 and Linux] [Windows]
jvisualvm A 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.

Java Web Services Tools

Tool Name Brief Description
schemagen Schema generator for Java Architecture for XML Binding.
wsgen Tool to generate JAX-WS portable artifacts.
wsimport Tool to generate JAX-WS portable artifacts.
xjc Binding compiler for Java Architecture for XML Binding.

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 Name Brief Description
jps Experimental: JVM Process Status Tool - Lists instrumented HotSpot Java virtual machines on a target system.
jstat Experimental: 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.
jstatd Experimental: 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.

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

Tool Name Brief Description
jinfo Experimental - Configuration Info for Java - Prints configuration information for a given process or core file or a remote debug server.
jhat Experimental - Heap Dump Browser - Starts a web server on a heap dump file (for example, produced by jmap -dump), allowing the heap to be browsed.
jmap Experimental - 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.
jsadebugd Experimental - Serviceability Agent Debug Daemon for Java - Attaches to a process or core file and acts as a debug server.
jstack Experimental - 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™ 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 tool can be used to run scripts that interact with the Java platform. 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.
Tool Name Brief Description
jrunscript Experimental - Script shell for Java - Runs a script.

© 著作权归作者所有

五大三粗
粉丝 163
博文 2293
码字总数 4767276
作品 0
广州
程序员
私信 提问
代码质量管理之SonarQube安装实践

1SONARQUBE简介1 1.1SONARQUBE安装需求1 1.1.1硬件需求1 1.1.2平台需求1 1.1.3数据库需求1 1.1.4浏览器需求1 2基础环境准备2 2.1测试环境准备2 2.1.1操作系统2 2.1.2安装软件一览2 2.2安装及...

bigstone2012
2016/06/02
0
0
Java 性能分析工具一览(JDK自带)

jstat 分析JVM HEAP占用情况 格式参考-JDK 参考-中文 常用命令 2. jps 查看JVM 进程 格式参考-JDK 常用命令 3. jmap 分析内存对象占用情况 格式参考-JDK 常用命令 4. jstack 查看JVM 调用堆栈...

小骏骏
2016/02/25
408
1
tomcat 相关文件说明

项目中经常用到tomcat。今天就给大家分享一下tomcat下各目录与文件的一些作用,下面只是部分重要的啦! 工具 tomcat(以tomcat7.0.50为例) 目录 tomcat-7.0.50解压版,主目录一览: 我们可以...

hapier
2016/06/08
17
0
终于,期待已久的 Java 9 正式发布了!

经过4次跳票,历经曲折的 Java 9 正式版终于发布了! 你可以通过这里下载 Java 9 正式版。JDK9 提供超过 150 项新功能特性,包括备受期待的模块化系统、可交互的 REPL 工具 jshell,以及安全增...

王练
2017/09/22
31.2K
198
代码生成技术一览

freemarker 依赖JDK velocity 依赖JDK asp 依赖iis jsp 依赖Tomcat+JDK EJS(js技术) 依赖 浏览器 补充:PHP也可以生成代码 服务器语言:jsp,asp,php等可以利用ajax请求文本,然后再提交回去进...

快速开发师
2015/07/16
891
11

没有更多内容

加载失败,请刷新页面

加载更多

总结:Linux

一、目录 目录 作用 /bin 存放二进制可执行文件(ls,cat,mkdir等),常用命令一般都在这里。 /etc /home 存放所有用户文件的根目录,是用户主目录的基点,比如用户user的主目录就是/home/user,...

浮躁的码农
12分钟前
2
0
什么是 happens-before 原则?

Java 中 happens-before 原则,是在 JSR-133 中提出的。 原文摘要: • Each action in a thread happens-before every subsequent action in that thread. • An unlock on a monitor happe......

ConstXiong
25分钟前
4
0
8核AMD Zen加持:微软Surface这回血拼

微软定于10月2日在纽约举办Surface新品发布会,几乎全线消费级产品都将更新,比如15英寸Surface Laptop 3。 最新爆料称,15寸Surface Laptop 3预计一口气推出6款型号,其中顶配为8核AMD处理器...

linuxCool
25分钟前
3
0
BeginnersBook MongoDB 教程

来源:ApacheCN BeginnersBook 翻译项目 译者:飞龙 协议:CC BY-NC-SA 4.0 贡献指南 本项目需要校对,欢迎大家提交 Pull Request。 请您勇敢地去翻译和改进翻译。虽然我们追求卓越,但我们并...

ApacheCN_飞龙
27分钟前
4
0
Java NIO:Buffer、Channel 和 Selector

本文将介绍 Java NIO 中三大组件 Buffer、Channel、Selector 的使用。 本来要一起介绍非阻塞 IO 和 JDK7 的异步 IO 的,不过因为之前的文章真的太长了,有点影响读者阅读,所以这里将它们放到...

乱世当空
28分钟前
2
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部