Thursday 6 March 2014

What is JDK?

JDK is a Java Development Kit ,that is a collection of tools that are used for developing and running Java Programs. JDK include the following:-

  • javac(java compiler)
  • appletviewer (used to view the applet programs)
  • javap(java disassembler)
  • javadoc(java HTML document creator)
  • javah(for C header file uses)
  • java(java interpreter)
  • jdb(java debugger)
Brief Description about the tools:-
  • javac:- java compiler is used to compile the java source code to bytecode(.class files are generated).It translate the java source code that is written by the programmer ,to bytecode that become input for the java interpreter. Syntax:-
                          javac <SourceFileName>.java
  • appletviewer:-It is used to run the applet programs and see the output of the applets ,it help to test that ,is the applet is running as per the internal coding or not.you do not need any browser to run the applet you can use the appletviewer tools to run applet.
                appletviewer <SourceFileName>.html
  • javap:-Java disassembler enables the programmer to convert the byte code files into a program description like package, protected, and public fields and methods of the classes
  • javadoc:-It create HTML formatted documentation form the java source code files.The developers use the comments ,doc tags and annotations in the programs which are the converted to HTML document for reference in future .
  • javah:-javah produces C header files and C source files from the java class files ,so that native method implementation can be done.
  • java:-java interpreter tools is used to  generate the machine code from the .class file,the end code generated by the java tool will be understandable by the machine hardware and output will be displayed to the user.
JDK tools used in java application development

No comments:

Post a Comment