problem to exicute JAR file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vikassawant
    New Member
    • Mar 2009
    • 27

    problem to exicute JAR file

    hi,
    I am using external POI package to perform excel import and export task in my project.This package is present at C drive on my machine.
    When I execute this project at command prompt it works well but when I create JAR file of this project,it does not perform only the task which performed with the help of POI package.

    To create JAR file, Is here need to add that POI package in project folder where all .class files are present ?

    Please guide me.

    Thanks in advance.

    Kind regards,
    Vikas Sawant
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    When you simply double click on your executable jar file it doesn't know where the other jar files are. You have to mention those other jar files in your manifest:

    Code:
    Class-Path: PathToOtherJar1 PathToOtherJar2 ...
    The paths can be relative to the path of your own jar.

    kind regards,

    Jos

    Comment

    Working...