It's not a secret anymore!*
The moose likes Beginning Java and the fly likes How to use methods in a class(which is in library jar) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to use methods in a class(which is in library jar)" Watch "How to use methods in a class(which is in library jar)" New topic
Author

How to use methods in a class(which is in library jar)

srihari miriyala
Greenhorn

Joined: May 16, 2012
Posts: 16
hi,

i need to use a use a methods of a class which is in a library-jar
please give me one example

i am waiting for your replay..thank you in advance ...


[Thumbnail for s.png]

srihari miriyala
Greenhorn

Joined: May 16, 2012
Posts: 16
sorry after goggling through google i found my solution...
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37941
    
  22
Welcome to the Ranch

Please tell us what you found. And avoid screenshots.
srihari miriyala
Greenhorn

Joined: May 16, 2012
Posts: 16
thank you..

i am using following code to solve my problem..
created a jar file using following command


and then adds this jar file as library and using methods of that class/jar like



and

created a object for the class



that's it...
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37941
    
  22
Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use methods in a class(which is in library jar)
 
Similar Threads
JBuilder 6 and custom tag-libraries
Unsatisfied link error in NetBeans but not from browser or command line
Doubt in WEB-INF/lib
packages
Creating a folder in a JAR file ...