Error: Could not find or load main class weblogic.WLST
Very common mistake.
[orasoa@xxxxx02 ~]$ java weblogic.WLST Error: Could not find or load main class weblogic.WLST |
Cause 1: You didn’t set JAVA_HOME variable & didn’t set PATH variable with java.
Solution: Set the correct JAVA_HOME and PATH variables.
Cause 2: You did not run “setWLSEnv.sh” to set the environments
Solution 2: Use the setWLSEnv.sh file to set the required environment variables.
Cause 3: You ran “setWLSEnv.sh” in improper way.
Solution: Ensure you have run the above file as below:
Observe the space between “.” & setWLSEnv.sh file.
[orasoa@x3ebsa02 ~]$ . /orasoa/app/oracle/middleware/wlserver/server/bin/setWLSEnv.sh … .. [orasoa@x3ebsa02 ~]$ java weblogic.WLST Initializing WebLogic Scripting Tool (WLST) ... Welcome to WebLogic Server Administration Scripting Shell |