nerdexam
Oracle

1Z0-102 · Question #63

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…

The correct answer is C. You forgot to set CLASSPATH to include weblogic.jar. See the full explanation below for the reasoning.

Question

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?

Options

  • AYou forgot to set PATH to include the java executable.
  • BThere is an error in the code of the script.
  • CYou forgot to set CLASSPATH to include weblogic.jar.
  • DYou are not in the directory where weeklydeployer.py resides.
  • EYou should have omitted the ".py" in the file name; it is assumed by WLST.
  • FYou forgot to set PATH to include the WLST executable.

How the community answered

(49 responses)
  • B
    2% (1)
  • C
    80% (39)
  • D
    10% (5)
  • E
    6% (3)
  • F
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-102 Practice