buildSettings.sh 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. # Licensed Materials - Property of IBM
  3. # BI and PM: Mobile
  4. # (C) Copyright IBM Corp. 2007, 2012
  5. # US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  6. # ---------------------------------------------------------------------------
  7. # Shell script to invoke jre and launch buildSettings tool.
  8. #
  9. # JAVA_HOME Must point at your Java Development Kit installation.
  10. # ---------------------------------------------------------------------------
  11. # CHANGE the following environment variables to point to Cognos 8 on your system.
  12. if [ "$CRN_HOME" = "" ] ; then
  13. CRN_HOME=/usr/cognos/c8
  14. fi
  15. if [ "$JAVA_HOME" = "" ] ; then
  16. JAVA_HOME=$CRN_HOME/bin/jre/6.0
  17. fi
  18. CP=mobadmin.jar
  19. CP=$CP:commons-logging.jar
  20. CP=$CP:dom4j.jar
  21. CP=$CP:jaxrpc.jar
  22. CP=$CP:log4j-1.2.8.jar
  23. CP=$CP:logkit-1.2.jar
  24. CP=$CP:commons-httpclient.jar
  25. echo $JAVA_HOME/bin/java -classpath "$CP" com.cognos.mobile.consoleclient.MobAdmin $*
  26. $JAVA_HOME/bin/java -classpath "$CP" com.cognos.mobile.consoleclient.MobAdmin "$@"
  27. exit $?