| Author |
Help please
|
Prateek Jassal
Greenhorn
Joined: Jun 11, 2011
Posts: 3
|
|
How do I add images for a jar file on the mac? I am using Sun's Java microedition software development kit 3.0.
Thanks in advance
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 12513
|
|
Welcome to the JavaRanch, Prateek!
Helpful hint: when posting messages, it's a good idea to make the message title specific to your problem. A general "help me!" doesn't attract the attention of people who are most likely to know and answer, since they'd actually have to open and read the message first. On the other hand, your first sentence "How do I add images for a jar file on the mac?" would make a good title, since it lets Mac people know immediately that you need their help.
|
One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
|
 |
Prateek Jassal
Greenhorn
Joined: Jun 11, 2011
Posts: 3
|
|
|
Okay Tim, I would surely do that but I do not know how do I actually change the title of the post now. Sorry for being so naive, but I am totally new here. So I would be glad if you could help me out with that.
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 7602
|
|
Usually the resources such as Images and media go under the res directory. Then, in your code, you access them with something like Later, when you bundle your app jar, the res directory is automatically included in the jar.
Does this answer your question? Frankly speaking I am not sure I understand what you are asking and what Mac has got to do with it.
|
[Donate a pint, save a life!] [How to ask questions]
|
 |
Prateek Jassal
Greenhorn
Joined: Jun 11, 2011
Posts: 3
|
|
|
Hey, thanks for the reply. I do understand you need to put them under the resources folder but my project does not have any resources folder. That is the reason why I was a bit befuddled and didn't know where to place the images. I am using the standard Java ME SDK.
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 7602
|
|
|
How did you create the project? Anyway try having a res directory at the same level as your src
|
 |
Walter Gabrielsen Iii
Ranch Hand
Joined: Apr 09, 2011
Posts: 158
|
|
Java Micro Edition SDK 3.0, Mac OS (This should also be available in the "help" menu of the SDK program).
Viewing and Editing Project Properties > Building a Project > Adding Libraries and Resources
Adding Libraries and Resources
To view this property page, right-click on a project and choose Properties. In the Properties window Build category, choose Libraries and Resources.
Add Folder. The root of a package or directory containing files.
Once a library or resource is added, it is visible in the Libraries and Resources table, which reflects the order of the libraries and resources in the classpath.
|
 |
 |
|
|
subject: Help please
|
|
|