FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Adding a resource to META-INF folder?

 
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users
View previous topic :: View next topic  
Author Message
shche123



Joined: 19 May 2009
Posts: 41

PostPosted: Wed Jul 01, 2009 1:46 pm    Post subject: Adding a resource to META-INF folder? Reply with quote

How would I add say an image to META-INF folder?
What is the most appropriate place for resources like images?

What Java ME spec talks about jar file package structure?

Thanks!
Back to top
View user's profile Send private message
Petr Suchomel
Posted via mailing list.





PostPosted: Wed Jul 01, 2009 1:54 pm    Post subject: Adding a resource to META-INF folder? Reply with quote

Why do you want to do that? This folder is dedicated for manifest.
Images can be anywhere in jar files, you can use e.g. res/ folder to put
them into. There is not any particular guidance for image location AFAIK.
--Petr

shche123 wrote:
Quote:
How would I add say an image to META-INF folder?

What is the most appropriate place for resources like images?



What Java ME spec talks about jar file package structure?



Thanks!











--
Petr Suchomel <address-removed>
Sun Microsystems, Inc.
Phone +420 2 33009234 (x49234), Fax +420 2 33009311
Back to top
shche123



Joined: 19 May 2009
Posts: 41

PostPosted: Wed Jul 01, 2009 4:01 pm    Post subject: Reply with quote

I was thinking about something like WEB-INF where in the web project one can place JSP code snippets and graphics files.

In NB 6.7 I found a spot where I can hard code a full path to res folder in the root of the project. The problem is that I copy projects around and I need a relative path to res folder in the project configuration.

Project Properties > Build > Libraries & Resources > Add Folder.

Is this where I would add res folder to the project and is there a way to add it relative to the project root?

Thanks
Leonid
Back to top
View user's profile Send private message
shche123



Joined: 19 May 2009
Posts: 41

PostPosted: Wed Jul 01, 2009 7:13 pm    Post subject: Reply with quote

I have moved res folder from the root of the project to the src folder and everything is good.
Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB