Visual Tagging Tool

VTT Demo - By Java Web Start

*** The VTT DeMo program is not supported since 2011 due to the limited resources. ***

VTT is designed to be installed and used on Linux or Window locally. However, it can be integrated with different web servers and used through internet. With Apache Http server and Java Web Start, VTT can be used as a client-side web application for demonstration purpose.

  • Client-side setup (for users)
    • Pre-requirements:
      • Client-side (user): Java J2SE 5.0+
    • Download Demo Data
      • Download vttDemoData.tgz
      • unzip and put vttDemoData under Desktop (Windows)
      • This data includes sample VTT files and help documents
    • Run VTT Demo
      • Click VTT Demo
        Or, you may use command line to run VTT demo as follows:
        • go to Desktop (or the directory where you put vttDemodata)
        • shell>javaws http://lexlx1.nlm.nih.gov/LexSysGroup/Projects/vtt/current/web/vtt/vtt.jnlp
      • Accept the digital signatured files from Lexical System Group (only for the first time)
      • The VTT should be opened with a default VTT file
        If VTT is opened with an empty file, you may open a demo VTT file by
        • Menu:[Vtt -> Open] or press "o" key
        • Select and open "vttDemoData/data/vtt/test.vtt" file
      • Go through VTT Documents to try VTT features by Menu:[Help -> Documents] or press "h" key
    • Please notes that Java Web Start is a client-side web application. Thus, all the file systems are client-side oriented. In the VTT application, all VTT files, tags files, and user help documents are stored in vttDemoData and downloaded to the client-side local disk.

  • Server-side setup
    This section shows an example of deploying VTT with Java Web Start (JWS). This section is only useful for developers who want to deploy VTT through their server. General users should skip this section.
    • Pre-requirements:
      • Apache HTTP server (2.2+)
      • Developed Java software in jar file format (vtt2009.jar)
    • Deploy Procedures:
      • Step 1, Set up the Apache Http Web Server for JNLP:
        • Add the following line to ${APACHE}/conf/httpd.conf

          AddType application/x-java-jnlp-file .jnlp

        • Restart the Apache Http web server
      • Step 2, Create a VTT directory ($VTT_WEB}/web/vtt) includes following:
        • vtt2009.jar (for java class files)
        • data.jar (for the config file, vtt.properties)
          Please note that all the VTT directory setup in config should be client-side oriented. For example, put "./vttDemoData/" so it points to "Desktop/vttDemoData/" in Windows.
        • vttLogo.jpg (for icon)

      • Step 3, Digitally sign the jar file:
        This is needed so that VTT have full access to local machine.

        
        shell> keytool -genkey -keystore myKeystore -alias myKey (generate keystore)
        shell> keytool -list -keystore myKeystore (check)
        shell> jarsigner -keystore myKeystore vtt2009.jar myKey (sign)
        shell> jarsigner -keystore myKeystore data.jar myKey (sign)
        		

      • Step 4, Create the JNLP (Java Network Launching Protocol) File:
        vtt.jnlp

  • References: