Software >> Middleware >> Weblogic >> 11gR1 >> How to start WLST

Assuming you are running bash shell and have defined env variable WL_HOME to contain the path to the weblogic home and JAVA_HOME to the path for java binaries for your OS and CLASSPATH have included the path to weblogic.jar

$ cd $WL_HOME/servers/bin

$ source ./setWLSEnv.sh

this runs the commands from setWLSEnv.sh to set the required environment variables such as WL_HOME, JAVA_HOME and CLASSPATH and make it available to the current shell

confiirm with

$ env | egrep 'WL_HOME|JAVA_HOME|CLASSPATH'

run WLST with

$ java weblogic.WLST

wls:offline> connect('weblogicadminuser','weblogicadminpassword','t3://server-ip:server-port')

wls:/domainname/serverConfig> ls()

To end the session

wls:...> disconnect()

wls:....> exit()