This content has been marked as final. Show 5 replies
First set the right classpath by using setWLSEnv (this file is located in the directory <middleware-home>/wl_server*/server/bin)
If you are on linux use: . ./setWLSEnv.sh
Now you can use: java weblogic.WLST <directory>/scriptname.py
Thanks Rene...It worked.
I am a novice weblogic admin.
I am trying to enroll domain (created before installation of Node Manager) to Node Manager, in the process I got to use:
but when I use so I am getting the following err
"Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/WLST
Caused by: java.lang.ClassNotFoundException: weblogic.WLST
at java.security.AccessController.doPrivileged(Native Method)
Could not find the main class: weblogic.WLST. Program will exit. "
I did ./setWLSEnv.sh, and I got my environment has been set, after that I used java weblogic.WLST still ended up with the above error.
Please help me .
Thanks in advance.
you should give ". ./setDomainEnv.sh" (first type a dot, than a space after dot. And than ./setDomainEnv.sh)
not only "./setDomainEnv.sh".
Good helpful clarification alpyanar