I created one java file then i converted into jar now i want to use it in another java class how to import that jar and how to compile and execute.
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.
Given a “library” class
pkg/LibClass.java:Compile and create a jar file:
(creates a
lib.jarin the current directory)Create an application that uses the library:
Compile and run the application using
lib.jar: