CompTIACompTIA
XK0-005 · Question #1378
XK0-005 Question #1378: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #1378. The question stem and answer options stay visible for context.
Troubleshooting
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-005 to see the answer
You've previewed enough free XK0-005 questions. Unlock XK0-005 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.
Topics
#Environment Variables#Java#Scripting#Troubleshooting