Changeset 8194 for trunk/greenstone3-extensions/vishnu/README
- Timestamp:
- 2004-09-30T15:18:32+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/greenstone3-extensions/vishnu/README
r8189 r8194 2 2 3 3 LINUX INSTALL: 4 The environment variable JAVA_HOEM needs to be set. 4 If you are running this as part of Greenstone, just installing Greenstone will install Vishnu. 5 If you want to run it standalone: 6 7 The environment variable JAVA_HOME needs to be set. 8 You need to have MG installed - this should be the version from Greenstone, and you need the mg.jar file in your classpath and the libmgjni.so in your ld_library_path. 9 You need the lucene 1.4 or higher jar file in your classpath. 10 Other jar files needed: xercesImpl.jar, servlet.jar. 11 12 The Makefiles may need modifying with respect to where things get installed to. 5 13 6 14 ./configure [--prefix=...] … … 10 18 WINDOWS INSTALL: 11 19 12 13 RUNNING THE SERVLET USING TOMCAT: 14 15 You need to run a servlet container for the server. 16 17 The servlet class is vishnu.server.VisServlet. The class file needs to be put in the appropriate directory for your servlet container. Edit the Makefile if need be. 18 The servlet needs one initialisation parameter: collectionsHome, which is the directory where collections live. 19 The vishnu.jar file needs to go into the CLASSPATH used by the servlet container. 20 Doesn't work on windows yet. 20 21 21 22 COLLECTION BUILDING: … … 35 36 Once the collection is built, you need to rename the building directory to index. Collections are built into the building directory, but served from the index directory. This allows you to serve a built collection while rebuilding. 36 37 38 For collections in the Greenstone 3 context, you will need to create the files etc/collectionConfig.xml and index/buildConfig.xml. 39 These should look like the following: 40 41 etc/collectionConfig.xml: 42 <collectionConfig> 43 <metadataList> 44 <metadata name="creator">creator's email address</metadata> 45 </metadataList> 46 <displayItemList> 47 <displayItem name='name' lang='en'>Collection name</displayItem> 48 <displayItem name='description' lang='en'>Collection description 49 </displayItem> 50 </displayItemList> 51 </collectionConfig> 52 53 index/buildConfig.xml: 54 <buildConfig> 55 <metadataList/> 56 <serviceRackList> 57 <serviceRack name="Visualizer"> 58 <engineType name="MG"/> <!-- or LUCENE, depending on how you built the collection --> 59 </serviceRack> 60 </serviceRackList> 61 </buildConfig> 62 63 64 RUNNING THE SERVLET: 65 66 If you are running this standalone, you need to run a servlet container for VisServlet. 67 68 The servlet class is vishnu.server.VisServlet. The class file needs to be put in the appropriate directory for your servlet container. 69 The servlet needs one initialisation parameter: collectionsHome, which is the directory where collections live. 70 The vishnu.jar file needs to go into the CLASSPATH used by the servlet container. 37 71 38 72 RUNNING THE APPLET: 39 73 40 74 Edit the test.html file and add in the correct address of the Visualiser servlet in the library parameter. 75 create a lib directory in the same directory as the test.html file, and copy the vishnu.jar file into it. 41 76 Open up the test.html file in a browser. Assuming you have collections available in the collectionsHome directory given to the servlet, you should be able to view them in the applet.
Note:
See TracChangeset
for help on using the changeset viewer.