|
ION Java User's Guide: Overview of ION Java |
|
Once you have the ION Server properly configured and started, you are ready to run the example applications. Several example applications are placed in your Web server directory during the ION Java installation process.
| Note If you skipped the step which provided the location of your Web server's HTML files directory during the installation process, you will need to copy the appropriate files to your Web server before running the examples. See Manually Configuring Your Web Server for instructions. |
The examples illustrate ION features and many of the examples allow you to view the Java source within your browser. These examples consist of at least two types of files: HTML files that contain the Java applets, and the Java applets themselves, which are contained in .class files. The raw Java source files for the example ION Java classes are included in the src subdirectory of the examples directory. Also included in the examples directory are a number of IDL .pro files that are called by the ION demonstration applets.
To run the ION Java examples, complete the following steps:
examples directory to IDL's Search path (note that this step may have been completed during the installation of ION Java if you completed the "ION Java Web Server Configuration" dialog):
On Windows, add Web_Server\IONJava\examples to the IDL Search path. For example, using the Apache web server, this might be C:\Program Files\Apache Group\Apache2\htdocs.
On UNIX, add Web_Server\IONJava\examples to the IDL Search path. For example, using the Apache web server, this might be usr\local\apache2\htdocs.
Web_Server is the path specifying the location of the Web server's HTML files directory.
For more information about modifying the IDL Search Path, see Setting the IDL Path.
http://hostname/IONJava/index.html
where hostname is your qualified domain name or machine name. This loads a page containing ION Java basic and advanced applet links as well as a link to ITT Visual Information Solution's ION web site.
The ION Java examples provide many samples of Web-based Java applications. The examples have been divided into three levels:
When you are ready to develop your own applications, see the following section, Where to Place HTML and Class Files for strategies on where to store the files required for your applications.
| Note If you are using Internet Explorer, you must access any HTML page that calls an applet by specifying a URL. Attempting to open such a page using the browser's File Open command or by double-clicking on an .html file fails to display the applet and results in security errors. Use a URL that contains http:// rather than file://. |
| Note The source for a freestanding Java Console application has also been provided. See the getversion.java file in the ITT_DIR\idl64\products\ion64\ directory (Windows) or ITT_DIR /ion64/ion_java/examples/src directory (UNIX). You can compile and run this example. |
IDL Online Help (March 06, 2007)