Thursday, 29 March 2012

Basic JDK tools and utilities


As an Application Admin/ Middleware Engineer. We ought to know basic functionalities of JDK tools. I tried to list few of them and would describe them in next blogs.


javac        The compiler for the Java programming language.
   
java          The launcher for Java applications.


javadoc    API documentation generator. 


apt           Annotation processing tool. See Annotation Processing Tool for  program annotation processing.
    
appletviewer    Run and debug applets without a web browser.    


jar    Create and manage Java Archive (JAR) files.


jdb    The Java Debugger.    


javah    C header and stub generator. Used to write native methods.
  
javap    Class file disassembler    


extcheck    Utility to detect Jar conflicts.    


keytool    Manage keystores and certificates.    


jarsigner    Generate and verify JAR signatures.    


policytool    GUI tool for managing policy files.    


native2ascii    Convert text to Unicode Latin-1.    


rmic    Generate stubs and skeletons for remote objects.    


rmiregistry    Remote object registry service.    


rmid    RMI activation system daemon.    


serialver    Return class serialVersionUID.    


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.


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.


htmlconverter    Converts an HTML page (file) containing applets to the OBJECT / EMBED tag format for Java Plug-in.


javaws    Command line tool for launching Java Web Start and setting various options.


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.


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.


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 Ardchitecture for XML Binding.


jrunscript    Script shell for Java - Runs a script.


and the ones that admins love :)


jps     JVM Process Status Tool - Lists instrumented HotSpot Java virtual machines on a target system.


jstat     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     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.


jinfo    Configuration Info for Java - Prints configuration information for a given process or core file or a remote debug server.


jhat    Heap Dump Browser - Starts a web server on a heap dump file (eg, produced by jmap -dump), allowing the heap to be browsed.


jmap    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    Serviceability Agent Debug Daemon for Java - Attaches to a process or core file and acts as a debug server.


jstack    Stack Trace for Java - Prints a stack trace of threads for a given process or core file or remote debug server.


Certainly listing the tools only points to avail options, wait for upcoming blogs for detailed descriptions :)

No comments:

Post a Comment