welcome to googlefans

2006/2/7

The Java environment tools

@ 10:50 PM (46 months, 4 days ago)

The JDK comes with a collection of tools that are used with Java programs to perform various functions. This section discusses these tools, and lists their various functions.The Java environment tools consists of the following:

  • appletviewer (for viewing Java applets stand-alone)
  • javac (The Java compiler)
  • java (The Java interpreter)
  • javap (The Java disassembler)
  • javah (for creating C header files, and stub files)
  • javadoc (for creating HTML documents on the applet)
  • jdb (The Java debugger)

These tools should all be located in the javabin directory. To use any of these tools, type it's syntax (options described in this section should be typed in without the square brackets []) wow goldat the command prompt.

The Appletviewer tool

The appletviewer tool allows you to view your applet as a stand-alone Java program. It requires an HTML file with the applet tag embedded in it as shown in previous examples. This tool is the only one of the JDK collection that has a Graphical User Interface. figure 2.5 shows the tool's GUI.

fig. 2.5

Appletviewer's GUI Interface.

The appletviewer's Applet menu

As shown in figure 2.5 the appletviewer's GUI has one menu - Applet. The menu items of this menu have the following functions:

  • Restart-Restarts the applet using the current settings.
  • Reload-Reloads the applet. Changes in the class file will be applied upon reload.
  • Clone-Clones (duplicates) the current applet, using the same settings to create another appletviewer instance.
  • Tag-Shows the HTML applet tag that was used to run the current applet, as well as any parameters that were passed to the applet from the HTML tag. (see fig. 2.6).
  • Info-Shows special information about the applet, that was set within the applet's program. (See fig. 2.7)
  • Properties-Shows the appletviewer security properties. These settings allow you to configure Appletviewer for a network environment that includes a Firewall Proxy, or an HTTP proxy, using the relative proxy server, and proxy port boxes. The Network access box, allows you to select the type of network access that appletviewer is allowed. The choices are: No network access, Applet Host (default), Unrestricted. The Class access box allows you to chose what kind of access-Restricted, or Unrestricted-you would like Appletviewer to have on other classes.(see fig. 2.8)
  • Quit-Closes the appletviewer window, and terminates the applet.

» Leave a comment


:mrgreen: :neutral: :twisted: :arrow: :shock: :smile: :???: :cool: :evil: :grin: :idea: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad: :!: :?:

Preview:

You say:

To prevent spam, please type in the exact word you see in this image: CAPTCHA
To refresh the image, click here. Otherwise, contact us.

  • Your E-mail address is never displayed. If you enter it, it will only be visible to the blog author
  • The line and paragraph breaks automatically