locating resources in a jar

Discussion in 'Java' started by faceless, May 1, 2008.

  1. faceless

    faceless

    Joined:
    May 1, 2008
    Messages:
    1
    hi, i've developed a java standalone application. it uses a object serialized in a file to store persistent data. there's no locating problem executing application in my IDE. this is'nt the case excuting the jar

    I can't use getClass().getResourceAsStream() method as it returns a InputStream Object instead of a FileInputStream to wrap with a ObjectInputStream.

    how can i do.thanks for help
     
    faceless, May 1, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Johann Blake
    Replies:
    0
    Views:
    486
    Johann Blake
    Dec 17, 2003
  2. Alex Hunsley
    Replies:
    2
    Views:
    12,946
    =?ISO-8859-15?Q?Fr=E9d=E9ric_G=E9din?=
    May 28, 2004
  3. Arnold Peters
    Replies:
    0
    Views:
    588
    Arnold Peters
    Jan 5, 2005
  4. muttley
    Replies:
    0
    Views:
    2,732
    muttley
    Oct 20, 2005
  5. Simon
    Replies:
    3
    Views:
    327
    Roedy Green
    Jul 27, 2009
Loading...

Share This Page