aspose file tools*
The moose likes Java Micro Edition and the fly likes Help please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Help please " Watch "Help please " New topic
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: 15665
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
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: 9995
    
    7

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
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: 9995
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help please
 
Similar Threads
Posting to bump up my count...
The x900 effect ?
Cant use object from another class
WA #1.....word association
Text box value is not being completely filled with request attribute