Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > locating resources in a jar

Reply
Thread Tools

locating resources in a jar

 
 
faceless faceless is offline
Junior Member
Join Date: May 2008
Posts: 1
 
      05-01-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java -cp a.jar -jar b.jar => Works on Windows, not on Debian cyberco Java 4 02-14-2006 06:27 AM
jaas.jar, jta.jar jdbc-stdext.jar missing from jdk1.5 RPM muttley Java 0 10-20-2005 02:40 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters Java 0 01-05-2005 10:59 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters XML 0 01-05-2005 10:59 PM
Locating and matching resources in embedded and external resource files Johann Blake ASP .Net 0 12-17-2003 06:18 PM



Advertisments