You have opened a terminal window (or a Window command prompt) to run a WLST script named
weeklydeployer.py. You enter the following command:
Java weblogic.WLST weeklydeployer.py
Instead of the WLST initializing and the script running, however, you receive the
NoClassDefFoundError java exception for weblogic/WLST.
What is the problem?
A.
You forgot to set PATH to include the java executable.
B.
There is an error in the code of the script.
C.
You forgot to set CLASSPATH to include weblogic.jar.
D.
You are not in the directory where weeklydeployer.py resides.
E.
You should have omitted the “.py” in the file name; it is assumed by WLST.
F.
You forgot to set PATH to include the WLST executable.
Explanation:
To set up your environment for WLST:
1. Install and configure the WebLogic Server software
2. Add WebLogic Server classes to the CLASSPATH environment variableNote: Although the process should be able to build the correct classpath by default, you might hit
this issue in some cases. To overcome the problem, you must explicitly set the classpath in the
admin console accordingly.
Reference: WebLogic Scripting Tool, Using the WebLogic Scripting Tool
La variable d’environnement CLASSPATH d’Oracle WebLogic
Server est configurée par la variable d’environnement
CLASSPATH du système Java.
• Fichiers qui doivent figurer dans CLASSPATH :
– /server/lib/weblogic.jar