Create a Jar file Library How to Build Your Own Java library?

 Hi there , to day we make  our Own Libraries in java 

2.  Fast Go to NetBeans Create New Project . Name it "ezcod"


3.  Create package  Name it  " Tech_inbox " 

4. Create Java class " founder "

5.  This is your Class


6.  Create a Method Whatever you like it. I create   " FoundersOfGoogle "

    I use String return type Data.

   Larry Page, Sergey Brin "


Code Here :


 

7. Clean and Build Project (Shift +F11) NetBeans short cut


8. Copy JAR File 

9. Create new  Project  and  Import   ezcod jar file in to Libraries 






10. Open New project main class file

    

11 Type this  line Founder.FoundersOfGoogle()  like this

         System.out.println( Founder.FoundersOfGoogle()  );
    
And import  Tech_inbox from ezcod libraries

        import Tech_inbox.Founder;

12 Run it like this.




13. Code here :




14. Output 




Post a Comment

Previous Post Next Post

Featured Post