Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

1. Explain what the following command does: javac -classpath

 
LogicPro's Avatar
  • Answered by:LogicPro
  • Computer Software Engineer
  • Positive Feedback: 99.4 %
  • Accepted Answers: 5551
Verified Expert
in Programming

Recent Feedback

Positive
fast response.
Positive
fast response
Positive
great
Positive
Thank you
Positive
Thank you
Positive
He responded quickly to my question with a solid answer.
Positive
Perfect as usual
Positive
thank you
Positive
thank you
Positive
Outstanding help!

Customer Question

1. Explain what the following command does:
javac -classpath com:. -g Foo.java Bar.java

2. 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

Submitted: 407 days and 18 hours ago.
Category: Programming
Value: $45
Status: CLOSED
Picture
Expert:  LogicPro replied407 days and 18 hours ago.

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?

Customer replied407 days and 18 hours ago.

Whenever you can, few days if you need the time.

Picture
Expert:  LogicPro replied407 days and 18 hours ago.

okay, Please check back in 12 hours.

Picture
Expert:  LogicPro replied407 days and 9 hours ago.

javac -classpath com:. -g Foo.java Bar.java
This 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!

Picture
Expert:  LogicPro replied407 days and 9 hours ago.

cd myProject
This 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!

Picture
Expert:  LogicPro replied407 days and 9 hours ago.

javac -d classes source/MyClass.java
This 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!

Accepted Answer

Picture
Expert:  LogicPro replied407 days and 9 hours ago.

cd ws

This 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.

Using above command, all the class files in the myApp directory are placed into the file named "myFile.jar". A manifest file entry named META-INF/MANIFEST.MF is automatically generated by the jar tool and is always the first entry in the jar file.


You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant and fresh answers.
It will ensure that question is for me.
If you’re a subscriber, you can ask other questions from me at no additional cost beyond your monthly payment.
Please bookmark my profile page:
http://www.justanswer.com/computer/expert-logicpro/
so you can come back and ask me a question anytime.
If my answer is helpful, please leave a positive feedback/bonus or ask me if you need more information.

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!

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 99.4 %
Accepts: 5551
Answered: 5/9/2012

Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

Ask this Expert a Question >
 
Tweet

Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
Submit pseudocode and a flowchart for the following programming 6/10/2013
I would like to give a directory and then report on the extensions 6/9/2013
Can you help me with a programming assignment? 6/9/2013
I'm looking for someone to tutor me, for programming, and softwar 6/3/2013
hi there'i have four questions about java its all about 5/29/2013
For The Doctor ONLY - Please fix the Doe Valley town Meeting 5/18/2013
Scenario: 5/17/2013
I need help with my website, I put in the Infolink ad code 5/17/2013
I need to make the submit button bigger 5/15/2013
Need a java programming to fulfill the following requirements: 1. 5/13/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
98 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us | Our Network
© 2003-2013 JustAnswer LLC
  • Pearl.com
  • JustAnswer UK
  • JustAnswer Germany
  • JustAnswer Spanish
  • JustAnswer Japan