Directory Description of Java bin, etc.

Source: Internet
Author: User
Tags bootstrap classes locale

Javac:java compiler, convert Java source code to byte generation
Java:Java interpreter, executing Java application code directly from a class file
appletviewer (Small program browser):A Java browser that executes the Java applet class on an HTML file
Javadoc:HTML document generated from Java source code and its description statement
jdb:The Java debugger, which executes the program, sets breakpoints, and examines variables line by row
Javah:Generates a C procedure that can invoke a Java procedure, or a header file that can be called by a Java program to a C procedure
JAVAP:Java disassembler, which displays the accessible functionality and data in the compiled class file, while displaying the meaning of the byte code
jar:A multi-purpose archive and compression tool, a Java application that merges multiple files into a single jar archive file.
Htmlconverter--Command conversion tool.
Native2ascii--A file that converts files that contain Fu that are not Unicode or LATINL characters to Unicode encoded characters.
Serialver--Return to Serialveruid. Syntax: serialver [show] command option show is used to display a simple interface. Enter the full class name by pressing the ENTER key or the "Show" button to display the Serialveruid.

Additional details:
Javac.exe

Usage: Javac < options > < source files >
Possible options include the following:
-G generates all debug information
-g:none Generating No debug information
-g:{lines,vars,source} generates only partial debug information
-O optimization, may hinder debugging or increase the class file
-nowarn Generate no warnings
-verbose output information about what the compiler is doing
-deprecation output uses a source program location that does not encourage the use of APIs
-classpath < paths > Specifying the location of user class files
-sourcepath < paths > Specifying the location of the input source files
-bootclasspath < path > Overwrite the location of the bootstrap class file
-extdirs < Directory (multiple) > overwrite the location of the installed extension class
-D < directory > Specify the location of the output class file
-encoding < encoding > specifying the character set encoding used in the source file
-target < version > generate class file for the specified virtual machine version
-help Print A synopsis of standard options

Appletviewer.exe

Usage: appletviewer <options> URL

Among them,<options> include:
-debug Launching Applet applet viewer in the Java debugger
-encoding <encoding> Specifies the character encoding used by the HTML file
-j<runtime flag> passing parameters to the Java interpreter

The-J option is not a standard option and is subject to change without notice.

====================
Jar.exe

Usage: jar {ctxu}[vfm0m] [jar-file] [manifest-file] [-C directory] File name ...
Options:
-C Create a new archive
-t lists the list of archived content
-X expands the named (or all) file in the archive
-U updates an existing archive
-V generates verbose output on standard output
-f Specifies the archive file name
-M contains marked information from the indicated file
-0 storage mode; Zip compression format not used
-M does not produce a list of all items (manifest) file
-I generates index information for the specified jar file
-C changes to the specified directory and contains the following files:
If a file name is a directory, it will be processed recursively.
The manifest (both the Manifest) file name and the archive file name need to be specified, in the same order specified by the ' m ' and ' F ' flags.
Example 1: Archive two class files into an archive file named ' Classes.jar ':
Jar CVF Classes.jar Foo.class bar.class
Example 2: Use an existing manifest (manifest) file ' Mymanifest ' to all the foo/directories
The file is archived to an archive file named ' Classes.jar ':
Jar CVFM Classes.jar mymanifest-c foo/.

Javadoc.exe

Usage: Javadoc [options] [packagenames] [sourcefiles] [classnames] [@files]
-overview <file> Read an overview document in HTML format
-public Show only public classes and members
-protected display Protected/public classes and members (default)
-package displaying package/protected/public classes and members
-private Show all classes and members
-HELP display command-line options
-doclet <class> generate output from candidate Doclet
-docletpath <path> specifying where to find Doclet class files
-sourcepath <pathlist> specifying where to find source files
-classpath <pathlist> specifying where to find user class files
-exclude <pkglist> Specify a list of packages to exclude
-subpackages <subpkglist> Specify subpackages to recursively load
-breakiterator Compute 1st sentence with Breakiterator
-bootclasspath <pathlist> Overwrite the location of the class file loaded by the bootstrap ClassLoader
-source <release> provide source compatibility with specified release
-extdirs <dirlist> Overwrite the location of installed extensions
-verbose output information about the work done by Javadoc
-locale <name> The locale used, such as en_US or En_us_win
-encoding <name> source file encoding name
-j<flag> Pass <flag> directly to the runtime system

Provided by Standard Doclet:
-D <directory> destination directory for output files
-use Creating a Usage page for classes and packages
-version contains @version segments
-author contains @author segments
-docfilessubdirs recursively copy Doc-file subdirectories
-splitindex divides the index into one file per letter
-windowtitle <text> Document browser window title
-doctitle -header -footer -bottom -link <url> Create links to Javadoc output at <url>
-linkoffline <url> <url2> Link to docs in <url> using package list at <url2>
-excludedocfilessubdir <name1>:.. Exclude any doc-files subdirectories with given name.
-group <name> <p1>:<p2&gt ... Group specified packages together in overview page
-nocomment supress description and tags, generate only declarations.
-nodeprecated does not contain @deprecated information
-noqualifier <name1>:<name2&gt:. Exclude the list of qualifiers from the output.
-nosince do not include @since information
-nodeprecatedlist does not generate a list that is not encouraged to use
-notree does not generate class hierarchies
-noindex do not generate indexes
-nohelp do not generate help links
-nonavbar do not generate a navigation bar
-quiet Don't display status messages to screen
-serialwarn Generate warning about @serial tag
-tag <name>:<locations>:-taglet the fully qualified name of Taglet to register
-tagletpath the path to Taglets
-charset <charset> CharSet for cross-platform viewing of generated documentation.
-helpfile <file> contains the Help link feature linked to the target file
-linksource Generate Source in HTML
-stylesheetfile <path> Change the style of the generated document file
-docencoding <name> Output Encoding name

Javah.exe

Usage: javah [options] <classes>

Where [options] include:

-HELP Print this Help information
-classpath loading paths for <path> classes
Loading paths for-bootclasspath <path> bootstrap classes
-D <dir> Output Directory
-O <file> output file (only one of-D or-O can be used)
-jni generating JNI-style header files (default)
-old generating JDK1.0-style header files
-stubs generating stubs files
-version Print version Information
-verbose output information about the work done by this command
-force Always write output file

The full name must be used when specifying <classes> (for example, Java.lang.Object).

Javaw.exe

====================
HtmlConverter.exe

Usage: htmlconverter [-option1 value1 [-option2 value2 [...]] [-simulate] [Filespecs]

Among them, the options are:

-source: Gets the path to the source file. Default value: <userdir>
-dest: Writes the path to the converted file. Default value: <userdir>
-backup: Writes the path to the backup file. Default value: <dirname>_bak
-F: Forcibly overwrite the backup file.
-subdirs: The files in the subdirectory should be processed.
-template: The path to the template file. If you are unsure, use the default value.
-log: The path of the write log. If not provided, no logs are written.
-progress: Show progress when converting. Default value: True
-simulate: Displays information specific to the transformation when no conversion is in progress.
-latest: Use the latest JRE to support the release version mimetype.
-gui: Displays the graphical user interface of the translator.

Filespecs: A list of file descriptions separated by spaces. Default value: "*.html *.htm" (requires quotation marks)

Orbd.exe

Usage: ORBD < options >

Where,< options > include:
-port start the activation port of the ORBD, the default value is 1049 (optional)
-defaultdb the directory of the ORBD file, the default value is "./orb.db" (optional)
-serverid ORBD Server identifier, default value is 1 (optional)
-orbinitialport initial port (required)
-orbinitialhost Initial host name (required)

====================
Policytool.exe

Usage: policytool [options]

[-file <file>] Rule File location

====================
Rmic.exe

Usage: rmic < options > < class name >

where < options > includes:
-keep does not delete intermediate generated source files
-keepgenerated (Same as "-keep")
-v1.1 created for 1.1 stub protocol version Stubs/skeleton
-vcompat (default) is created with 1.1 and
1.2 Stub protocol version compatible with Stubs/skeleton
-v1.2 is only created for 1.2 stub protocol version stubs
-IIOP create stubs for IIOP. When using this option, the,< option > should also include:

-always always create stubs (even when they are present)
-alwaysgenerate (Same as "-always")
-nolocalstubs does not create stubs optimized for the same process

-IDL create IDL. When using this option, the,< option > should also include:

-novaluemethods methods that do not generate value types
-always Always create IDL (even when they appear)
-alwaysgenerate (Same as "-always")

-G General debugging information
-depend recursively re-compiling outdated files
-nowarn No warning
-nowrite does not write compiled classes to the file system
-verbose output information about the work done by the compiler
-classpath <path> specifying where to find the input source and class files
-sourcepath <path> specify where to find the user source files
-bootclasspath <path> Overwrite the location of the bootstrap class file
-extdirs <path> overwrite where to install extension classes
-D <directory> Specify where the generated class files are placed
-j<runtime flag> passing parameters to the Java interpreter

====================
Rmid.exe

Usage: Rmid <option>

Among them,<option> include:
-port <option> Specify the port to use for Rmid
-log <directory> Specify the directory to which Rmid writes the log
-stop Stop the current Rmid call (for the specified port)
-c<runtime tags > Pass parameters to each sub-process (activation group)
-j<runtime tags > passing parameters to the Java interpreter

====================
Rmiregistry.exe

Usage: Rmiregistry < options > < ports >

Where,< options > include:
-j<runtime tags > passing parameters to the Java interpreter

====================
Serialver.exe

Usage: serialver [-classpath classpath] [-show] [classname ...]

====================
Servertool.exe

Welcome to the Java IDL Server tool
Please enter a command at the prompt

Servertool > Help

Available commands:
-------------------

Register-Registers a server that can be activated
Unregister-Cancel Server registration
Getserverid-Returns the server identifier of the application name
List-List all registered Servers
Listappnames-Enumerates the currently defined application names
Listactive-Enumerates the currently active servers
Locate-Locating a registered server on a specific type of port
Locateperorb-Requests the agent to locate the port for a specific object of the registered server.
Orblist-Object Request Agent (ORB) name and its mapping list
Shutdown-Close a registered server
Startup-Start a registered server
Help-Get assistance
Quit-Quit this tool
====================
rmic

Function Description:
Rmic generates stubs and skeleton for remote objects.
Grammar:
rmic [Options] Package-qualified-class-name (s)
Additional notes:
The rmic compiler generates stubs and skeleton for remote objects based on the compiled Java class (with remote object implementations) (Remote objects are objects that implement the Java.rmi.Remote interface). The class given in the rmic command must be a class that has been successfully compiled by the Javac command and is a fully qualified package.
Command options
-classpath[Path] Specifies the path rmic uses to query the class. If this option is set, it overrides the default value or CLASSPATH environment variable. Directories are separated by colons.
-d[Directory] Specifies the root directory of the class hierarchy. This option can be used to specify the target directory for stub and skeleton files.
-depend causes the compiler to consider recompiling classes that are referenced from other classes. In general, it compiles only the missing or expired classes that are referenced from the source code.
-G allows a debug table to be generated. The Debug table contains information about line numbers and local variables, which is the information used by the Java debugging tools. By default, only the number of lines is born.
-j is used with the-D option to pass the following options (no spaces between-j and-D) to the Java interpreter.
-keepgenerated the generated. Java source files for the stub and skeleton files, and writes the source files to the same directory as the. class file, using the-D option if you want to specify a directory.
-nowarn close Warning. If this option is used, the compiler does not output any warning messages.
-show Displays the GUI (graphical user interface) of the Rmic compiler. Enter one or more package-qualified class names (separated by spaces) and press the ENTER key or the "Show" button to create stubs and skeleton.
-vcompat (default) creates stubs and skeleton that are compatible with both JDK 1.1 and 1.2 stub protocol versions.
-verbose enables the compiler and linker to output information about which classes are being compiled and which class files are being loaded.
-v1.1 creates stubs and skeleton for the JDK 1.1 stub protocol version.
-v1.2 only stubs that create JDK 1.2 stub protocol versions.

=================================

Rmid

Function Description:
Rmid initiates the activation of the system daemon so that objects can be registered and activated on the Java virtual machine.
Grammar:
Rmid [-port Port] [-log dir]
Additional notes:
The Rmid tool initiates the activation of the system daemon. The activation system daemon must be started before the activation system can be registered to an active object or an active object can be activated on a Java virtual machine.
Command options
-c< some command-line options > Specify an option that, when you create a child daemon (activation group) for each rmid, is passed to the child daemon as a command-line argument.
-log[Directory] Specifies the name of the directory where the system daemon is activated to write its database and related information. By default, a log directory is created in the directory where the Rmid command is executed.
-port[Port] Specifies the port that is used by the Rmid Registry service program. Activates the system daemon to bundle Activationsystem with the name Java.rmi.activation.ActivationSystem in the registration service program.
-stop stops the current Rmid call on the port specified by the-port option. If no port is specified, the Rmid running on port 1098 will be stopped.

=============================

Rmiregistry

Function Description:
The rmiregistry command launches the remote object Registration service on the specified port of the current host.
Grammar:
Rmiregistry [Port]
Additional notes:
The Rmiregistry command creates and starts the remote object registration service on the specified port of the current host. If you omit port, the registry service will start on port 1099. The rmiregistry command does not produce any output and is typically run in the background. The Remote object Registration service program is a bootstrap naming service. The RMI server on the host will use it to bind the remote object to the name. The client can query the remote object and make a remote method call. A registry service is typically used to locate the first remote object on which the application needs to invoke its methods. This object, in turn, provides support for each application to find other objects. The methods of the Java.rmi.registry.LocateRegistry class can be used to obtain a registration service program operation on a host or host and port. The URL-based method of the Java.rmi.Naming class will operate on the registry service and can be used to query remote objects, bind simple (string) names to remote objects, rebind new names to remote objects (overwriting old bindings), Cancels the binding of the remote object and lists the URLs that are bound on the registration service program.

=============================

Serialver

Function Description:
The Serialver command returns SERIALVERSIONUID.
Grammar:
serialver [Command Options]
Additional notes:
Serialver returns the serialversionuid of one or more classes in a form that is suitable for copying to an evolutionary class. When called with no arguments, it outputs a usage line.
Command options
The-show displays a simple user interface. Enter the full class name and press the ENTER key or the show button to display the Serialversionuid.

================================

Jarsigner

Function Description:
Generate a signature for the Java archive (jar) file and verify the signature of the signed JAR file.
Grammar:
Jarsigner [command options] Jar-file alias
jarsigner-verify [command Options] Jar-file
Additional notes:
The Jarsigner tool is used for two purposes:
1: Signing a Java archive (JAR) file
2: Verifying signature and integrity of a signed JAR file
Command options
-keystore[url] Specifies the URL of the key warehouse. The default value is the. keystore file in the user's host directory, which is determined by the system property "User.home".
-storetype[storetype] Specifies the key warehouse type to be instantiated. The default key warehouse type is the type specified by the value of the "Keystore.type" property in the security properties file, returned by the static method Getdefaulttype in Java.security.KeyStore.
-storepass[password] Specifies the password required to access the key warehouse. This is only required if the JAR file is signed (not validated). In this case, if the-storepass option is not available on the command line, the user will be prompted for the password.
-keypass[password] Specifies the password of the private key that is used to secure the key warehouse entry (indicated by the alias specified in the command line). This password is required to sign the JAR file using Jarsigner. If a password is not provided on the command line and the required password differs from the key warehouse password, the user is prompted to enter it.
-sigfile[file] Specifies for the build. SF and. The basic file name of the DSA file.
-signedjar[file] Specifies the name used for the signed JAR file.
-verify if it appears on the command line, the specified JAR file will be validated instead of signed. If the checksum succeeds, "Jar verified" is displayed. If an attempt is made to validate an unsigned jar file, or to validate a jar file that is signed by an unsupported algorithm, such as RSA, which is not installed with the RSA provider, the jar is unsigned. (signatures missing or not parsable) ".
-certs if it appears on the command line together with the-verify and-verbose options, the output will include the certificate information for each signer of the JAR file.
-verbose if it appears on the command line, it represents "verbose" mode, which enables Jarsigner to output additional information during the JAR signature or validation process.
-INTERNALSF in the past, the JAR file was created when it was signed. The DSA (signature block) file contains a simultaneous generation. A fully encoded copy of the SF file (signature file). This practice has been changed. To reduce the overall size of the output JAR file, by default. DSA files are no longer included. A copy of the SF file. However, if-INTERNALSF appears on the command line, the old approach will be used. This option is primarily useful for testing, and should not be used in practice, as it will eliminate useful optimizations.
-sectionsonly if it appears on the command line, the JAR file is generated when it is signed. The SF file (signature file) will not include the header containing the hash of the entire manifest file. It contains only the information and hashes associated with each individual source file in the JAR. This option is primarily useful for testing, and should not be used in practice, as it will eliminate useful optimizations.
-j[javaoption] passes the specified javaoption string directly to the Java interpreter. (Jarsigner is actually a "wrapper" of the Interpreter). This option should not contain any spaces. It helps to adjust the execution environment or memory usage. To get a list of available interpreter options, type Java-h or java-x at the command line.

========================

Keytool
Function Description:
Manages a key warehouse (database) that consists of the private key and the certificate chain of the certificates related public key. You also manage certificates from trusted entities.
Grammar:
Keytool [command]
Additional notes:
Keytool is a key and certificate management tool. It enables users to manage their own public/private key pairs and related certificates for self-authentication (via digital signatures) or data integrity and authentication services (for users to authenticate themselves to other users/services). It also allows the user to store the public key of their communication peers (in the form of a certificate).

=======================

Native2ascii

Function Description:
A file that converts files that contain locally encoded characters (both non-Latin1 and non-Unicode characters) to Unicode encoded characters.
Grammar:
native2ascii [Options] [Inputfile [OutputFile]]
Additional notes:
Java compilers and other Java tools can only handle files that contain Latin-1 and/or Unicode encoding (UDDDD notation) characters. Native2ascii converts a file containing other character encodings to a file containing Latin-1 and/or Unicode encoded characters. If OutputFile is omitted, the output of the standard output device is used. Also, if Inputfile is omitted, the standard input device input is used.
Command options
-reverse performs the opposite: Converts a file with Latin-1 and/or Unicode encoded characters to a file with locally encoded characters.
-encoding[encoding_name] Specifies the encoding name used by the conversion process. The default encoding is obtained from the system attribute file.encoding.

=======================

Appletviewer

Function Description:
Java Applet Browser. The Appletviewer command can run applets without the World Wide Web browser environment.
Grammar:
Appletviewer [Threads flag] [command options] URLs ...
Additional notes:
The Appletviewer command connects to the document or resource to which the URL is pointing and displays each applet referenced by the document in its own window. Note: If the URL points to a document that does not reference any applets with an OBJECT, EMBED, or applet tag, then appletviewer does nothing.
Command options
-debug launches Appletviewer in the Java debugger jdb, allowing you to debug applets in your document.
-encoding[encoded name] Specifies the encoded name of the input HTML file.
-j[javaoption] passes the javaoption string as a single parameter to the Java interpreter running the appletviewer. Parameters cannot contain spaces. A string of multiple arguments in which each parameter must begin with the prefix-j, which is then removed. This is useful when tuning the compiler's execution environment or memory usage.

=========================

Extcheck

Function Description:
Extcheck detects the version conflict between the target jar file and the current installation mode extension jar file.
Grammar:
Extcheck [-verbose] Targetfile.jar
Additional notes:
The Extcheck utility checks that the title and version of the specified Jar file conflict with the extensions installed in the JDK TM software. Before you install an extension, you can use the utility to see if the same version or a higher version of the extension is installed.
The Extcheck utility compares the Specification-title and specification-version headers of the Targetfile.jar file manifest with the corresponding headers of all jar files currently installed in the extended directory (the default extension directory is Jre/lib/ext). The Extcheck utility compares the version number in the same way as the Java.lang.Package.isCompatibleWith method. If no conflict is detected, the return code is 0. A non-0 error code is returned if the manifest for any jar file in the extended directory has the same specification-title and the same or an updated specification-version number. If the Targetfile.jar manifest does not have a specification-title or specification-version attribute, it also returns a non-0 error code.
Command options
-verbose files are listed when the Jar files in the extended directory are checked. In addition, the manifest properties of the target jar file and all conflicting jar files are reported.

=====================

Jar

Function Description:
Java Archive Tools
Grammar:
jar [command options] [manifest] Destination input-file [Input-files]
Additional notes:
The Jar tool is a Java application that merges multiple files into a single jar archive file. The jar is a multipurpose archive and compression tool based on the zip and zlib compression format. However, the main purpose of the design jar is to make it easy to package Java applets or applications into a single archive. When you combine applets or application components (. class files, images, and sounds) into a single archive, you can download them in one HTTP transaction with a Java proxy, such as a browser, rather than requiring a new connection for each component. This greatly shortens the download time. The jar can also compress files, which further increases the download speed. In addition, it allows the author of an applet to sign individual items in a file, thus certifying its source. The syntax of the Jar tool is basically the same as the tar command syntax.
Command options
-C Create a new archive or an empty archive on the standard output.
-t lists the table of contents on standard output.
-x[file] Extracts all files from standard input, or extracts only the specified files. If file is omitted, all files are extracted, otherwise only the specified file is fetched.
-F The second parameter specifies the jar file to be processed. In the-C (create) scenario, the second parameter refers to the name of the jar file to be created (not on standard output). In the-t (table (or-X (extract) scenario, the second parameter specifies the jar file to be listed or extracted.
-V The output of the growth format on the standard error output device.
-m includes manifest information from the specified existing manifest file. Usage Example: "Jar CMF mymanifestfile myjarfile *.class"
-0 storage only, no zip compression.
-M does not create a manifest file for the project.
-U updates an existing JAR file by adding a file or changing the manifest. For example: "Jar-uf foo.jar foo.class" adds the file Foo.class to the existing jar file Foo.jar, while "Jar UMF manifest Foo.jar" updates the manifest manifest with the information in Foo.jar.
-C Changes the directory during the execution of the jar command. For example: "Jar-uf foo.jar-c classes *" adds all the files in the classes directory to Foo.jar, but does not add the class directory itself.
Sample Program
1: Package All the class files in the current directory into a new jar file:
Jar CF File.jar *.class
2: Display a list of files in a jar file
Jar TF File.jar
3: Add all the files in the current directory to a jar file that already exists
Jar CVF File.jar *

========================

Javadoc

Function description
The Java API documentation generator generates an API document HTML page from a Java source file.
Grammar:
Javadoc [Command Options] [package name] [source file name] [@files]
where [package name] is the name of a series of packages separated by spaces, the package name does not allow wildcard characters, such as (*). [Source file name] is separated by a space

Directory Description of Java bin, etc.

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.