How does one create a package for a Java Project through the Unix command-line?
I am looking to find a way to create a package for my Java files similar to the way Eclipse does, but in the command-line.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Packaging is internal to your code; you don’t need any external tools. All you need to do is insert a
package your.package.name;declaration at the top of each.javafile, and stick them all in a/your/package/namedirectory (generally under thesrcdir of your project), and they’ll be packaged.