Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javap.exe, javaw.exe, javah.exe

 
Dev Prakash
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a java certification Aspirant and i have almost six months of java programming experience, recently came to know about this site and this discussion board looks very lively to me.
I would like to know some tips for exam preprations.
Can someone please suggest me the meaning and functions of these(javap.exe, javaw.exe, javah.exe) utilities found jdk1.2.2\bin directory.
-Dev Prakash
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the documentation found in the docs/tooldocs directory of your JDK installation.
 
Dev Prakash
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I Could not find docs/tooldocs directory of my JDK installation.
Can you give some more guidance or any online link for the documentation.
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dev,
The on-line documentation for the JDK 1.2 tools is
here.
------------------
Jane
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javaw == java runtime that does not need a command window. Very handy for background processes and GUI applications that need no stdout and stderr
commandline is probably the same as for java.exe (-h and -? product no output)
javah == program to generate JNI stubs
Usage: javah [options] <classes>
where [options] include:
-help Print this help message
-classpath <path> Path from which to load classes
-bootclasspath <path> Path from which to load bootstrap classes
-d <dir> Output directory
-o <file> Output file (only one of -d or -o may be used)
-jni Generate JNI-style header file (default)
-old Generate old JDK1.0-style header file
-stubs Generate a stubs file
-version Print version information
-verbose Enable verbose output
-force Always write output files
<classes> are specified with their fully qualified names (for instance, java.lang.Object).
javap == (seems to be, never used it) bytecode disassembler
Usage: javap <options> <classes>...
where options include:
-b Backward compatibility with javap in JDK 1.1
-c Disassemble the code
-classpath <pathlist> Specify where to find user class files
-extdirs <dirs> Override location of installed extensions
-help Print this usage message
-J<flag> Pass <flag> directly to the runtime system
-l Print line number and local variable tables
-public Show only public classes and members
-protected Show protected/public classes and members
-package Show package/protected/public classes
and members (default)
-private Show all classes and members
-s Print internal type signatures
-bootclasspath <pathlist> Override location of class files loaded
by the bootstrap class loader
-verbose Print stack size, number of locals and args for methods
If verifying, print reasons for failure
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic