A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
How to use methods in a class(which is in library jar)
srihari miriyala
Greenhorn
Joined: May 16, 2012
Posts: 16
posted
May 17, 2012 01:43:36
0
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 ...
s.png
srihari miriyala
Greenhorn
Joined: May 16, 2012
Posts: 16
posted
May 17, 2012 03:30:44
0
sorry after goggling through google i found my solution...
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32833
4
posted
May 17, 2012 06:00:31
0
Welcome to the Ranch
Please tell us what you found. And avoid
screenshots
.
srihari miriyala
Greenhorn
Joined: May 16, 2012
Posts: 16
posted
May 17, 2012 06:06:52
0
thank you..
i am using following code to solve my problem..
created a jar file using following command
jar cvf SQLite_DAL.jar SQLite_DAL_DirectoryName
and then adds this jar file as library and using methods of that class/jar like
import SQLite_DAL.SQLite_Database;
and
created a object for the class
SQLite_Database objSQLite_Database = new SQLite_Database();
that's it...
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32833
4
posted
May 17, 2012 06:11:04
0
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
packages
JBuilder 6 and custom tag-libraries
Creating a folder in a JAR file ...
Unsatisfied link error in NetBeans but not from browser or command line
Doubt in WEB-INF/lib
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter