Installation guide for a GUI for NASA ADC Data


January 2 2001 Dongwook Shin 

You can install NASA ADC GUI or modify it to fit in your GUI in the following steps:

    1. Get the NASA ADC dataset at http://xml.gsfc.nasa.gov/guides/
    2. Download Xalan and Xerces at http://xml.apache.org and Swing at http://java.sun.com/products/jfc/
    3. Add the jar files for Xalan, Xerces, Swing and Xpert in your classpath. A sample classpath looks like:
      set classpath=.;C:\JBUILDER3\JAVA\LIB;C:\shin\xmlsystem\xalan_1_0_0\xerces.jar;C:\shin\XMLsystem\xerces-1_1_0\xerces.jar;C:\jbuilder3\myclasses\xpert.jar;C:\programfiles\swing-1.1\swing.jar;C:\shin\xmlsystem\xalan_1_0_0\xalan.jar;
      But, note that xalan\xerces.jar should precede xerces\xerces.jar. Otherwise, you may have trouble in running the XSLT processor.
    4. You can modify Frame2.java to fit in your data with the following changes
      1. at line 78 :
        XSLTInputSource xslSource = new XSLTInputSource("C:\\shin\\xmlfiles\\nasa\\adc.xsl");
        change the sample XSL file into your own XSL file
      2. at line 349:
        xr.initialize("\\shin\\xmlfiles\\nasa\\adcorg");,
        change the sample nasa directory into the file (or directory) name where your XML data resides
      3. Modifies jLabel7 to jLabel11 and jTextField1 to jTextField5 so that they represent some of elements in your data
      4. at line 434:
        void jButton2_actionPerformed(ActionEvent e);,
        modify the function so that it can compose XPath query appropriately

If you have any question, feel free to ask me at dwshin@futurexpert.com

 

Written in January 2 2001