CompTIA
XK0-004 · Question #383
XK0-004 Question #383: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-004 to reveal the answer and full explanation for question #383. The question stem and answer options stay visible for context.
Question
A Linux administrator is running a script that runs a Java application but receives the following error: Error: Java_Home is not set Java is installed on the Linux server and java -version returns a value. Which of the following should the administrator add to the script to resolve this issue?
Options
- AExport PATH-$PATH: $JAVA_HOME
- BEcho `which java > $JAVA_HOME
- CExport Java_Home which java
- DSet JAVA_HOME -which java
Unlock XK0-004 to see the answer
You've previewed enough free XK0-004 questions. Unlock XK0-004 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.