run.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. #
  3. # Licensed Materials - Property of IBM
  4. #
  5. # IBM Cognos Products: DOCS
  6. #
  7. # (C) Copyright IBM Corp. 2011
  8. #
  9. # US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
  10. # IBM Corp.
  11. #
  12. # Run the samples in GUI mode.
  13. # REMOVE this when you edit this file.
  14. echo You MUST edit this file before you can compile this application.
  15. # CHANGE the following environment variables to point to IBM Cognos on your system.
  16. if [ "$CRN_HOME" = "" ] ; then
  17. CRN_HOME=/usr/cognos/c10
  18. fi
  19. if [ "$JAVA_HOME" = "" ] ; then
  20. JAVA_HOME=/c/j2sdk6
  21. fi
  22. JAVA=$JAVA_HOME/bin/java
  23. JAR_HOME=$CRN_HOME/sdk/java/lib
  24. # Build the CLASSPATH required
  25. CLASSPATH=
  26. for dir in ../Common ../HandlersCS ../Security ../ReportParams ../ReportSpec ../ViewCMReports ../ViewCMPackages ../ExecReports ../runreport ../Scheduler ../ContentStoreExplorer; do
  27. CLASSPATH="$CLASSPATH:$dir"
  28. done
  29. for jar in activation axis axisCognosClient commons-discovery-0.2 commons-logging-1.1 commons-logging-adapters-1.1 \
  30. commons-logging-api-1.1 dom4j-1.6.1 jaxen-1.1.1 jaxrpc mail saaj wsdl4j-1.5.1 ; do
  31. CLASSPATH="$CLASSPATH:$JAR_HOME/$jar.jar"
  32. done
  33. # Run DispatcherUI.java
  34. $JAVA -classpath "$CLASSPATH" QueryServiceUI