Recent Feedback
1. Explain what the following command does: javac -classpath com:. -g Foo.java Bar.java2. What do the following commands do? cd myProject javac -d classes source/MyClass.java 3. What do the following commands do? cd ws jar -cf MyJar.jar myApp
Already Tried: Java
Hello and welcome to JustAnswer. I look forward to assisting you today with your question and providing the best answer possible.Hi,When do you need this answer?
Whenever you can, few days if you need the time.
okay, Please check back in 12 hours.
javac -classpath com:. -g Foo.java Bar.javaThis command will override the user class path in the CLASSPATH environment variable and will set classpath to directory 'com' and to current directry.-g option will generate all debugging information, including local variables. By default, only line number and source file information is generated. The class files will be created after once the java files are succssfully compiled.Remember, if for any reason you are unsatisfied with my answer, we can continue the conversation until you’re satisfied and Accept my answer. I can address follow up questions at no extra charge and I’m always here to help. Thank you for using JustAnswer!
cd myProjectThis command will change the present working directory to 'myProject'Remember, if for any reason you are unsatisfied with my answer, we can continue the conversation until you’re satisfied and Accept my answer. I can address follow up questions at no extra charge and I’m always here to help. Thank you for using JustAnswer!
javac -d classes source/MyClass.javaThis command will compile java file found in source directory and generated java file will be placed in directory 'classes'. The destination directory 'classes' must already exist.Remember, if for any reason you are unsatisfied with my answer, we can continue the conversation until you’re satisfied and Accept my answer. I can address follow up questions at no extra charge and I’m always here to help. Thank you for using JustAnswer!
cd wsThis command will change the present working directory to 'ws'jar -cf MyJar.jar myApp
This is typical usage to combine files into a jar file.
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.