Article View: borland.public.jbuilder.java.api
Article #2768Re: Problem in file inside a JAR
From: Johan Forsberg
Date: Tue, 14 Mar 2000 00:00
Date: Tue, 14 Mar 2000 00:00
21 lines
1508 bytes
1508 bytes
Thomas Cheah <thomascheah@hotmail.com> skrev i diskussionsgruppsmeddelandet:38C6471B.AF68277F@hotmail.com... > I had created a java applet. I compressed all the class files and the > media files (image and sound files) into a single JAR file. > > My problem is, when java interpreter failed to find my media files which > is supposed to be located in the JAR file. The applet will run find when > I didn't bundle my media files in the JAR file. > > Can anyone tell me what is going wrong? Can't I archive the media files > along with the class files into a single JAR file? Some possible reasons: * You are using Netscape and trying to use getResource() instead of getResourceAsStream(). * You haven't included the resources in your manifest file. Break open the jar and check the manifest for lines corresponding to your resources. If they're not there, try adding the resources to your JBuilder project before building the jar.
Technical Details
Message-ID:
<8alp58$qq27@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38C6471B.AF68277F@hotmail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,1f7bdd55c56d90d5 X-Google-Attributes: gid1089d0,public From: "Johan Forsberg" <jfo@SPAM_SPAM_EGGS_SPAMstmf.se> Subject: Re: Problem in file inside a JAR Date: 2000/03/14 Message-ID: <8alp58$qq27@bornews.borland.com> X-Deja-AN: 597399467 References: <38C6471B.AF68277F@hotmail.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.api