Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Accessing swf file from jar gives error

843802Jun 5 2009
Hi,
I am using JNLP to download jar on machine and make my swing application work offline on machine. Problem is that, I have swf file as resource included in Swing Panel (We use JFlash for flash support in swing).
But I get FileNotFoundException. because swf file resides in jar iteself.

code looks something like :
URL url=this.getClass().getResource("intro.swf");
fp=new FlashPanel(url);
	   fp.setMovie(url);
Does anybody have idea about this? Please tell me how to read any image/swf file which resides in JAR file..

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2009
Added on Jun 5 2009
0 comments
131 views