• Post Reply Bookmark Topic Watch Topic
  • New Topic

Putting APIs in or with a jar?  RSS feed

 
Len Padson
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! I am using eclipse and i made a project which uses some external jars as an api. when i run the program in eclipse it works just fine. how do i export it as a jar and still be able to use the apis that im using?
 
Paul Clapham
Sheriff
Posts: 22719
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you run the jar you exported, make sure those other jars are in the classpath at the time.

If you made the exported jar an executable jar, then the way to do that is to list them in the Class-Path entry of the jar's manifest, and make sure they are in the right place when you go to execute the jar.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!