To test the Instant Technical Support application:
Download and install the free implementation of the Jabber server from the following URL:
http://www.jabberstudio.org/projects/ejabberd/releases/view.php?id=610
Set the path of the bin directory of J2SDK by executing the following command at the command prompt:
set path=%path%;D:\j2sdk1.4.0_02\bin;
Set the classpath of the lib directory of J2SDK by executing the following command at the command prompt:
set classpath=%classpath%;D:\j2sdk1.4.0_02\lib;
Copy the ChatMainApplet.java, welcome.html, signuppage.html, loginpage.html, and chathtml.html files to a folder on your computer. Use the cd command at the command prompt to move to the folder in which you have copied the Java files. Compile the files by using the following javac command, as shown:
javac *.java
Create a virtual directory named TechnicalSupport in a Web server.
To run the Instant Technical Support application, specify the following uniform resource locator (URL) in the Web browser:
http://localhost/TechnicalSupport/welcome.html
The home page of the Instant Technical Support application appears. Click the Sign up button to signup for a new account in the Instant Technical Support application. The Signup page appears.
Enter data in the fields of the Signup page, as shown in Figure 5-6:
Figure 5-6: The Signup Information
Click OK to create a new account. The user interface of the Instant Technical Support application appears.
Specify the query text in the bottom text area provided by the Instant Technical Support application, as shown in Figure 5-7:
Figure 5-7: Specifying the Query Text
Click the Send button. The Instant Technical Support application sends the query to the technical support executive.
The specified query appears on the user interface in the upper text area, as shown in Figure 5-8:
Figure 5-8: Sending the Query
The technical support executive answers the query and sends the response back to the end user, as shown in Figure 5-9:
Figure 5-9: Receiving the Response for the Specified Query