|
|
-web in the client's script configures Habanero to invoke the client based on the data received from a browser. When the browser is configired properly, it downloads the file, invokes Habanero and passes the data to Habanero. At this point Habanero trys to either join the defined session or it connects to a web site to download replay data. Setting up your system involves:
java Habanero -web %1
Note:%1, $1 are place holders for a parameter. Windows uses %1 and UNIX and Mac use $1.
A Sample Windows Batch File
@ECHO OFF
SET PATH=C:\jdk1.1.7;C:\jdk1.1.7\bin;C:\Program Files\NCSA\Habanero2.0\rsc\lib\w95;
SET LD_LIBRARY_PATH=C:\jdk1.1.7\lib
SET HOME=C:\Program Files\NCSA\Habanero2.0
SET CLASSPATH=.;C:\jdk1.1.7\lib\classes.zip
SET CLASSPATH=%CLASSPATH%;C:\Program Files\NCSA\Habanero2.0
SET CLASSPATH=%CLASSPATH%;C:\Program Files\NCSA\Habanero2.0\apps
SET CLASSPATH=%CLASSPATH%;C:\Program Files\NCSA\Habanero2.0\apps\savina
SET CLASSPATH=%CLASSPATH%;C:\Program Files\NCSA\Habanero2.0\rsc\ObjectSpace\voyager.jar
SET CLASSPATH=%CLASSPATH%;C:\Program Files\NCSA\Habanero2.0\rsc\ObjectSpace\jgl3.1.0.jar
SET CLASSPATH=%CLASSPATH%;C:\Program Files\NCSA\Habanero2.0\rsc\ObjectSpace\swingall.jar
SET CLASSPATH=%CLASSPATH%;C:\Program Files\NCSA\Habanero2.0\rsc\ObjectSpace\x509v1.jar
ECHO Starting the Habanero Client from a Web page.
ECHO Press Ctrl-C in this window to terminate the Client.
java Habanero -web %1
A Sample UNIX Script
#!/bin/ksh
PATH=$PATH:/java/sun/jdk1.1.7/bin
CLASSPATH=.:/java/sun/jdk1.1.7/lib/classes.zip:/usr/local/bin/habanero:/usr/local/bin/habanero/apps:
/usr/local/bin/habanero/apps/Savina:/usr/local/bin/habanero/rsc/jars/jgl3.1.0.jar:
/usr/local/bin/habanero/rsc/jars/voyager.jar:/usr/local/bin/habanero/rsc/jars/swingall.jar:
/usr/local/bin/habanero/rsc/jars/x509v1.jar:
LD_LIBRARY_PATH=/usr/local/bin/habanero/rsc/lib/Solaris:$LD_LIBRARY_PATH
java Habanero -web $1
| Description of type: | Habanero Session Defintion |
| File Extension: | def |
| MIME Type: | application/x-habaneroSession |
| Application to use: | Use the Browse button and find the HabaneroWeb script, batch file or icon. |
< A HREF="NCSASession.def">NCSA Session</A>The replay data is a set of files located in the /capture/<Session Name> directory. The entire directory needs to be coppied to a web site. In addition, a file needs to be created that contains the URL pointing to the data set and it must have a .hab extension.
For example, if I recorded data from the NCSA Session, I would copy the /captured/NCSASession directory to my web site and create a file containing the URL to the data set. I'll call this file NCSASessionRecordedData.hab and it will contain the following URL:
http://havefun.ncsa.uiuc.edu/someDirectory/NCSASession/Next, I'd link NCSASessionRecordedData.hab to a web page.
< A HREF="NCSASessionRecordedData.hab">Recorded Data from NCSA Session - 4/12/99</A>
mime.types file.
application/x-habanero hab def
Habanero® is a registered trademark owned by The Board of Trustees of the University of Illinois. Copyright 1996-1998. All rights reserved. Java(TM) is a proprietary trademark owned by Sun Microsystems, Inc.
|
|