• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

WEBLOGICCLASSPATH!!! - Weblogic 5.1

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
This issue has always bugged me. i need the help of you guys to solve this for me. I want to undersatnd what should be put in the WEBLOGICCLASSPATH? Should all shared class files be put there? I would be grateful if someone could share his experience/knowledge on this. This is in context of Weblogic 5.1.
Regards
Sanjeev
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@rem This script can be used to start WebLogic Server. It contains
@rem following variables:
@rem
@rem JAVA_HOME - Determines the version of Java used to start
@rem WebLogic Server. This variable must point to the
@rem root directory of a JDK or JRE installation. See
@rem the WebLogic platform support page
@rem (http://www.weblogic.com/docs51/platforms/index.html)
@rem for an up-to-date list of supported JVMs on Windows NT.
@rem Because of packaging differences between versions of Java,
@rem this script will not work with a JRE 1.1.7 installation.
@rem PRE_CLASSPATH - Use this variable to prepend jar files or directories to
@rem the WEBLOGIC_CLASSPATH.
@rem POST_CLASSPATH - Use this variable to append jar files or directories to
@rem the end of the WEBLOGIC_CLASSPATH.
@rem
@rem When setting these variables below, please use short file names (8.3).
@rem To display short (MS-DOS) filenames, use "dir /x". File names with
@rem spaces will break this script.
@rem
@rem jDriver for Oracle users: This script assumes that native libraries
@rem required for jDriver for Oracle have been installed in the proper
@rem location and that your system PATH variable has been set appropriately.
@rem For additional information, refer to Installing and Setting up WebLogic
@rem Server (/install/index.html in your local documentation set or on the
@rem Internet at http://www.weblogic.com/docs51/install/index.html).
@echo off
setlocal
rem Set user-defined variables. Note that JAVA_HOME, WEBLOGIC_HOME & ORACLE_BIN will be taken from the environment
if "%ORACLE_BIN%" == "" (set PATH=C:\ORANT\BIN) else (set PATH=%ORACLE_BIN%)
if "%JAVA_HOME%" == "" echo Please set the JAVA_HOME environment variable. & goto finish
if not exist "%JAVA_HOME%\bin\java.exe" (
echo Could not find under %JAVA_HOME%\bin\java.exe. Please check the JAVA_HOME environment variable.
goto finish
)
if "%WEBLOGIC_HOME%" == "" echo Please set the WEBLOGIC_HOME environment variable. & goto finish
if not exist "%WEBLOGIC_HOME%\bin\oci815_8" (
echo Could not find directory %WEBLOGIC_HOME%\bin\oci815_8. Please check the WEBLOGIC_HOME environment variable.
goto finish
)
rem Check that script is being run from the weblogic directory obtained from the SCM
if not exist .\weblogic.policy echo startWebLogic.cmd: must be run from the mondus\deployment\weblogic directory & goto finish
rem Check whether JAVA_HOME points to a valid installation of the JDK
if exist %JAVA_HOME%\lib\nul goto startWeblogic
if exist %JAVA_HOME%\classes\nul goto startWeblogic
echo The JDK wasn't found in directory %JAVA_HOME%. Please correct the JAVA_HOME environment variable.
goto finish
:startWeblogic
rem Set the following env variables: JAVA_CLASSPATH, PRE_CLASSPATH, WEBLOGIC_CLASSPATH, POST_CLASSPATH, and WEBLOGIC_PARAMS
call setenv.bat
rem Move to the Weblogic directory
cd %WEBLOGIC_HOME%
rem Puts the Oracle driver in the PATH
set PATH=.\bin;.\bin\oci815_8;%PATH%
if "%PRE_CLASSPATH%" NEQ "" set WEBLOGIC_CLASSPATH=%PRE_CLASSPATH%;%WEBLOGIC_CLASSPATH%
if "%POST_CLASSPATH%" NEQ "" set WEBLOGIC_CLASSPATH=%WEBLOGIC_CLASSPATH%;%POST_CLASSPATH%
rem Check whether all the jars are available
for %%i in (%WEBLOGIC_CLASSPATH%) do (
if not exist %%i echo %%i does not exist; please check the setenv script. Terminating. & goto finish
)
@echo on
%JAVA_HOME%\bin\java -ms64m -mx64m -classpath %JAVA_CLASSPATH% -Dweblogic.class.path=%WEBLOGIC_CLASSPATH% -Dweblogic.home=%WEBLOGIC_HOME% -Djava.security.manager %WEBLOGIC_PARAMS% weblogic.Server
@echo off
goto finish
:finish
endlocal
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!