run.sh 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/sh
  2. #
  3. # Licensed Materials - Property of IBM
  4. #
  5. # IBM Cognos Products: DOCS
  6. #
  7. # (C) Copyright IBM Corp. 2005, 2010
  8. #
  9. # US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
  10. # IBM Corp.
  11. #
  12. # Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  13. # Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  14. #
  15. # Run reportrunner.class
  16. # REMOVE this when you edit this file.
  17. echo You MUST edit this file before you can compile this application.
  18. # CHANGE the following environment variables to point to IBM Cognos on your system.
  19. #
  20. # You need to change the user, password, namespace, and search path at the bottom,
  21. # too.
  22. if [ "$CRN_HOME" = "" ] ; then
  23. CRN_HOME=/usr/cognos/c10
  24. fi
  25. if [ "$JAVA_HOME" = "" ] ; then
  26. JAVA_HOME=/c/j2sdk6
  27. fi
  28. JAVA=$JAVA_HOME/bin/java
  29. # Build the CLASSPATH required
  30. CLASSPATH=
  31. for jar in activation axis axisCognosClient commons-discovery-0.2 commons-logging-1.1 commons-logging-adapters-1.1 \
  32. commons-logging-api-1.1 dom4j-1.6.1 jaxen-1.1.1 jaxrpc mail saaj wsdl4j-1.5.1 ; do
  33. CLASSPATH="$CLASSPATH:$CRN_HOME/sdk/java/lib/$jar.jar"
  34. done
  35. CLASSPATH="$CLASSPATH:../Common"
  36. # Go!
  37. #
  38. # By default, runs as anonymous. To run with security on, run as follows,
  39. # substituting your username, password, and namespace:
  40. # $JAVA -classpath "$CLASSPATH" reportrunner -user myusername -password mypassword -namespace mynamespace
  41. $JAVA -classpath "$CLASSPATH" reportrunner