File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes javap.exe, javaw.exe, javah.exe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "javap.exe, javaw.exe, javah.exe" Watch "javap.exe, javaw.exe, javah.exe" New topic

javap.exe, javaw.exe, javah.exe

Dev Prakash

Joined: Oct 09, 2000
Posts: 28
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

Joined: Mar 22, 2000
Posts: 13036
Read the documentation found in the docs/tooldocs directory of your JDK installation.
Dev Prakash

Joined: Oct 09, 2000
Posts: 28
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

Joined: Aug 30, 2000
Posts: 3141
Hi Dev,
The on-line documentation for the JDK 1.2 tools is

Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
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

I agree. Here's the link:
subject: javap.exe, javaw.exe, javah.exe
It's not a secret anymore!