BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cannot get image resources (jpgs) into a resource.jar file?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Flip
Guest





PostPosted: Thu May 13, 2004 3:05 pm    Post subject: cannot get image resources (jpgs) into a resource.jar file? Reply with quote



I've tried this before and got it to work, but I'm trying a different tactic
this time and can't get it to work this time. Can someone help?

I'm trying to create a resources.jar file with images and sounds in it.
Here's the steps I do.

-Create project
-create simple class with simple main (Sytem.err.println( "Hello"); )
-create a resources dir off the root of the project (at the same level as
the src dir)
-create an images dir and sounds dir under resources
-populate it with some jpgs, gifs, and wavs
-add the resources dir to the source path of the project
-refresh the jpx and the new resources are there (should I see all the
individual dirs laid out? why can't I see the hierarchy instead?)
-create a new Basic archive
-take all the defaults except for the file to create, I put it in the jpx
root/bin/resources.jar
-build the archive

When I go look at the archive, I am expecting all the jpgs, gifs and wavs to
show up, but they aren't there. Any ideas on what I'm doing wrong?

Thanks.


Back to top
Ken Warner
Guest





PostPosted: Thu May 13, 2004 7:54 pm    Post subject: Re: cannot get image resources (jpgs) into a resource.jar fi Reply with quote



I think you have to add each resource to the project individually.
I don't think that just adding the folder the resources are in
will do it.

Flip wrote:
Quote:
I've tried this before and got it to work, but I'm trying a different tactic
this time and can't get it to work this time. Can someone help?

I'm trying to create a resources.jar file with images and sounds in it.
Here's the steps I do.

-Create project
-create simple class with simple main (Sytem.err.println( "Hello"); )
-create a resources dir off the root of the project (at the same level as
the src dir)
-create an images dir and sounds dir under resources
-populate it with some jpgs, gifs, and wavs
-add the resources dir to the source path of the project
-refresh the jpx and the new resources are there (should I see all the
individual dirs laid out? why can't I see the hierarchy instead?)
-create a new Basic archive
-take all the defaults except for the file to create, I put it in the jpx
root/bin/resources.jar
-build the archive

When I go look at the archive, I am expecting all the jpgs, gifs and wavs to
show up, but they aren't there. Any ideas on what I'm doing wrong?

Thanks.




Back to top
Tor Iver Wilhelmsen
Guest





PostPosted: Fri May 14, 2004 7:08 am    Post subject: Re: cannot get image resources (jpgs) into a resource.jar fi Reply with quote



"Flip" <[remove]phenry_w (AT) hotmail (DOT) com> writes:

Quote:
-create an images dir and sounds dir under resources
-populate it with some jpgs, gifs, and wavs
-add the resources dir to the source path of the project
-refresh the jpx and the new resources are there (should I see all the
individual dirs laid out? why can't I see the hierarchy instead?)

Because there isn't one: The resources dir is root of a source path,
the dirs under there are separate paths ("packages").

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.