I’m pretty new to java and with some googling I haven’t found an answer. I have a JAR file that is correctly added to my classpath. How am I supposed to know what the package name for the jar file is if it is never given to me?
Share
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.
jar is a normal zip file. open this file and look at the directory structure.
/org/apache/xyz/MyClass.class
will be
import org.apache.xyz.MyClass;