Welcome Guest | Sign in | Register
Variables and Loops - Discussion Page For Q.2976 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Variables and Loops > Questions and Answers

Q: You have a java file name Test.java .
Test.java needs access to a class contained in app.jar in "exam"
directory.

Which of the follwing command set classpath to compile clean?
A. javac -classpath exam/app.jar Test.java B. javac -classpath app.jar Test.java
C. javac -classpath exam Test.java D. None of the above

Answer and Explanation

Answer:javac -classpath exam/app.jar Test.java

Explanation:
javac -classpath exam/app.jar Test.java is the correct command to set exam/app.jar in classpath.

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.