Issue
Suppose I have a java class file which can be used in many projects. So, I want to create a jar file and it can be used in any other projects as needed. How to achieve this ? I am using eclipse IDE.
Solution
I found the solution as below:
First create your java file as you require. Right click your project -> click on export -> select option jar, follow the dialog box. Now, you have created your own java jar file.
Create your new project as you require, import that jar file as you are importing other jar files. Now, you can import that created jar file's methods or anything as you required...
Answered By - Narayan Subedi