• Post Reply Bookmark Topic Watch Topic
  • New Topic

importing jar to java class.......  RSS feed

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to use a jar file(contains methods for reading,writing etc for excel sheet) in my class for reading an excel sheet. Can anybody help me how can I do that in my java program?
Thanks
 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your java file, import the proper classes from the jar that you need to use. When you compile your java file, make sure the jar is on your classpath. When you run your code, make sure the jar is on the classpath.
Brian
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!