SHARE
TWEET

Untitled

a guest Nov 14th, 2014 182 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. #*****************************************************************************
  3. # This script is used to set up your environment for development with WebLogic
  4. # Server.  It sets the following variables:
  5. #
  6. # WL_HOME        - The root directory of your WebLogic installation
  7. # JAVA_HOME      - Location of the version of Java used to start WebLogic
  8. #                  Server. This variable must point to the root directory of a
  9. #                  JDK installation and will be set for you by the installer.
  10. #                  See the Oracle Fusion Middleware Supported System Configurations page
  11. #                  (http://www.oracle.com/technology/software/products/ias/files/fusion_certification.html)
  12. #                  for an up-to-date list of supported JVMs on your platform.
  13. # PATH           - Adds the JDK and WebLogic directories to the system path.  
  14. # CLASSPATH      - Adds the JDK and WebLogic jars to the classpath.  
  15. #
  16. # Other variables that setWLSEnv takes are:
  17. #
  18. # PRE_CLASSPATH  - Path style variable to be added to the beginning of the
  19. #                  CLASSPATH
  20. # POST_CLASSPATH - Path style variable to be added to the end of the
  21. #                  CLASSPATH
  22. # PRE_PATH       - Path style variable to be added to the beginning of the
  23. #                  PATH
  24. # POST_PATH      - Path style variable to be added to the end of the PATH
  25. #
  26. # jDriver for Oracle users: This script assumes that native libraries required
  27. # for jDriver for Oracle have been installed in the proper location and that
  28. # your os specific library path variable (i.e. LD_LIBRARY_PATH/solaris,
  29. # SHLIB_PATH/hpux, etc...) has been set appropriately.  Also note that this
  30. # script defaults to the oci817_8 version of the shared libraries. If this is
  31. # not the version you need, please adjust the library path variable
  32. # accordingly.  
  33. #
  34. # For additional information, refer to "Managing Server Startup and Shutdown for Oracle WebLogic Server"
  35. # (@DOCSWEBROOT/START/overview.htm).
  36. #*****************************************************************************
  37.  
  38. WL_HOME="/Users/cristianchiovari/Oracle/Middleware/Oracle_Home/wlserver"
  39. export WL_HOME
  40.  
  41. . "${WL_HOME}/common/bin/commEnv.sh"
  42.  
  43. # Check that the WebLogic classes are where we expect them to be
  44. if [ ! -f "${WL_HOME}/server/lib/weblogic.jar" ]; then
  45.   echo
  46.   echo "The WebLogic Server wasn't found in directory ${WL_HOME}/server."
  47.   echo "Please edit the startWebLogic.sh script so that the WL_HOME"
  48.   echo "variable points to the WebLogic installation directory."
  49.  
  50. # Check that java is where we expect it to be
  51. elif [ ! -d "${JAVA_HOME}/bin" ]; then
  52.   echo
  53.   echo "The JDK wasn't found in directory ${JAVA_HOME}."
  54.   echo "Please edit the startWebLogic.sh script so that the JAVA_HOME"
  55.   echo "variable points to the location of your JDK."
  56.  
  57. else
  58.  
  59. CLASSPATH="${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${CLASSPATH}"
  60. export CLASSPATH
  61.  
  62. # Import extended environment
  63.  
  64. if [ -f extEnv.sh ]; then
  65.   . extEnv.sh
  66. fi
  67. if [ ! -z "${EXT_PRE_CLASSPATH}" ]; then
  68.   CLASSPATH="${EXT_PRE_CLASSPATH}${CLASSPATHSEP}${CLASSPATH}"
  69. fi
  70. if [ ! -z "${EXT_POST_CLASSPATH}" ]; then
  71.   CLASSPATH="${CLASSPATH}${CLASSPATHSEP}${EXT_POST_CLASSPATH}"
  72. fi
  73.  
  74. if [ ! -z "${EXT_PRE_PATH}" ]; then
  75.   PATH="${EXT_PRE_PATH}${PATHSEP}${PATH}"
  76. fi
  77. if [ ! -z "${EXT_POST_PATH}" ]; then
  78.   PATH="${PATH}${PATHSEP}${EXT_POST_PATH}"
  79. fi
  80.  
  81. # Get PRE and POST environment
  82. if [ ! -z "${PRE_CLASSPATH}" ]; then
  83.   CLASSPATH="${PRE_CLASSPATH}${CLASSPATHSEP}${CLASSPATH}"
  84. fi
  85. if [ ! -z "${POST_CLASSPATH}" ]; then
  86.   CLASSPATH="${CLASSPATH}${CLASSPATHSEP}${POST_CLASSPATH}"
  87. fi
  88.  
  89. if [ ! -z "${PRE_PATH}" ]; then
  90.   PATH="${PRE_PATH}${PATHSEP}${PATH}"
  91. fi
  92. if [ ! -z "${POST_PATH}" ]; then
  93.   PATH="${PATH}${PATHSEP}${POST_PATH}"
  94. fi
  95.  
  96. if [ ! -d "${M2_HOME}" ]; then
  97.   M2_HOME=${MW_HOME}/oracle_common/modules/org.apache.maven_3.0.5
  98. fi
  99.  
  100. PATH="${PATH}${PATHSEP}${M2_HOME}/bin"
  101.  
  102. if [ "${WLS_NOT_BRIEF_ENV}" = "" ] ; then
  103. echo CLASSPATH=${CLASSPATH}
  104. echo
  105. echo PATH=${PATH}
  106. echo
  107. echo "Your environment has been set."
  108. fi
  109.  
  110. fi
  111.  
  112. java weblogic.WLST
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top