Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help please

 
Prateek Jassal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Prateek Jassal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Prateek Jassal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you create the project? Anyway try having a res directory at the same level as your src
 
Walter Gabrielsen Iii
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic