Eclipse 3.2 + MTJ + Nokia (and other emulators) - Cannot read resources

have the following simple Hello World code :
public class Hello_World_MIDP extends MIDlet {
protected void startApp() throws MIDletStateChangeException {
try{
// I AM NOT ABLE TO READ THIS RESOURCE
Image anImage = Image.createImage(getClass().getResourceAsStream("/res/anImage.png"));
} catch (Exception e){
e.printStackTrace();
protected void pauseApp() {
protected void destroyApp(boolean flag) throws MIDletStateChangeException {
This is throwing runtime exceptions since it cant read the resource anImage.png. I have placed the anImage.png file in the res directory which Eclipse MTJ had created. This res directory is sitting in the same dir as src in the filesystem.
I have tried many different pathnames - "src/anImage.png" , "/anImage.png" etc. Nothing works.
Further, the .classpath file in Eclipse reads :
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry path="src" kind="src"/>
<classpathentry path="MTJ Java ME" kind="con"/>
<classpathentry path="bin" kind="output"/>
</classpath>
If I append a <classpathentry path="src" kind="res"/> (done by addidng the res folder in the Build Path), I get perverification errors.
Can someone help? Or can you post the code refering a resource of any MTJ project which runs well with Eclipse/WTK/S60.
My Eclipse is 3.2

Hi lexdabear,
the applet source can be found here: http://developers.sun.com/mobility/javacard/articles/applet/Wallet.java
I just changed the packet and class name, so it is really strange that it is not working.
I chose the "IBM JCOP v2.2 Simulation".
Thanks,
iobytrap

Similar Messages

  • Is there anyway to connect iphone to other devices via bluetooth.like nokia and other phones

    Is there anyway to connect iphone to other devices via bluetooth.like nokia and other phones

    No
    Bluetooth is supported for stereo headsets/speakers, handsfree telephone devices/headsets, some keyboards, some peer-to-peer apps from the app store, and tethering where provided by the carrier.
    Other than this, it will not connect to any computer/phone/device.

  • Why can I sometimes paste text into a revision history dialog box and other times cannot?

    Why can I sometimes paste copied text (from another VI's revision history, for instance or from anywhere else) into a revision history dialog box and other times cannot? All versions of LabVIEW! It's something like the control key becomes diabled. I've noticed the same thing when saving many VI's at once, some will let you paste into revision history and others will not. Aren't all VI's created equally when it comes to revision history? All versions of LabVIEW since 3 have plagued me with this problem.

    Hello,
    If you'd like to add text to the revision history of a VI, you can
    paste into the Comment box and add all of your text at once.  The
    history itself can be read from this window, but cannot be directly
    edited.  The History field is read-only in the dialog box. 
    If you feel this should not be the case, your best course of action is
    to express your desire for added functionality to our developers on the Product Feedback page of our website.
    Message Edited by MattP on 12-19-2006 12:04 PM
    Cheers,
    Matt Pollock
    National Instruments

  • I recently purchased a Mac 0S X 10.6.6 which was an upgrade from the Mac OS 1.4.1.1  I downloaded the adobe ph otoshop CS2 which I had on my old computer and now it cannot read my NEF files.  Which is a RAW file from my Nikon.  Can anyone help...please?

    I recently purchased a Mac OS X 10.6.6 which was an upgrade from my Mac OS version 10.4.1.1  I downloaded the Adobe Photoshop CS2 which I had on my old computer and now it cannot read my NEF files which is a RAW file from my Nikon D200.  I did not have this problem on my old Mac.  I always shoot RAW and can't open any photos.  Can anyone help me PLEASE?!? 

    Do you have access to another Mac to see if the disk can be read by it?  If it can't then you're pretty sure it's the disk. If it can then there may be issues with your optical drive which might be cleared up by using a cleaning disk on it, one that uses dry brushes (no liquid).
    If you have access to another Mac and it can read the iWork disk make a disk image of it so you can move the disk image to your iMac and install from the disk image.
    OT

  • After down loading raw plug in my CS5 and lightroom4.2 cannot read D800 images

    after down loading raw 7.1 plug in in my CS5 and lightroom4.2 cannot read D800 images

    ACR6.7 for CS5 should also handle D800 images.  You may still get a warning message about needing 7.1 (which implies also having CS6), and the manual defringing tool was added to LR after ACR 6.7 came out, but other things should be the same.
    If LR 4.2 isn’t reading your D800 images, then perhaps they are being corrupted.   If you are using an obsolete version of Nikon Transfer, that could be one way to corrupt them.  You may be able to fix Nikon Transfer corrupted NEFs, with this tool:  http://owl.phy.queensu.ca/~phil/exiftool/fix_corrupted_nef.html

  • Using Lightroom 4 w/ Windows 7.  Recently started shooting w/ Sony camera .arw files.  Lightroom cannot read the files.  Loaded Adobe converter program onto the computer and this program cannot read the files either.  Any suggestions?

    Using Lightroom 4 w/ Windows 7.  Recently started shooting w/ Sony camera that shoots .arw files.  Lightroom cannot read the files.  Loaded Adobe converter program onto the computer and this program cannot read the files either.  Any suggestions?

    Thnx again for the reply.  The version of Lightroom I have is 4.0  (working w/Windows 7)  This computer and all media files are kept off-line After doing more research, I downloaded DNG Converter 7.1This loaded into a .zip folder, which I am planning to install into the off-line computer andrun.  Where does this folder go?
    And will this set up work with my version of Lightroom?
    What a pain.  Makes me wanna go back to shooting .nef files for all stills
    Thnx

  • Why itune and my computer cannot read my iphone?

    why itunes and my computer cannot read my iphone when i plug it into my computer?

    Try http://support.apple.com/kb/HT1808

  • Looking for Click Deluxe for nokia and other phone...

    I am looking for a game called Click Deluxe. so far I can only find it for the Palm devices. Is there one for the N95 8gg or for mobile phones period? Maybe an alternative to it? A look-a-like perhaps under a different name perhaps?

    On a computer go to iTunes>Store>View Account and then Purchase History.

  • Illustrator and InDesign CC cannot read the fonts in Suitcase

    The Illustrator and InDesign CC versions cannot read my fonts in Suitcase Fushion 3. Is there any solutions?
    Thank You!!!!

    Upgrade to Fusion 5. Three is not compatible with the CC apps.

  • When I reply to an email, if I hit enter the line to the left breaks and the message goes all over the place and the recipient cannot read it.

    My friend tells me my answers to her emails go all over the place on the email and she cannot read them. What can I do to prevent that from happening?

    You might try going to edit on the top line. In the drop down window you will find "attachments". click on that and in that drop down window click on "always send windows friendly attachments" This solve a similar problem for me.

  • My iTunes agreement coming not in English but other language cannot read agreement and sign

    MMy Itune agreement is coming not in. english but other language can not read and sign iTunes agreement sg

    Also, I have tried to access iTunes from my laptop, iPhone 5 and iPad 4th gen.  Same result on every device.

  • HT4623 i updated ios 6 and it crashes.. now i guess i dont have the ios in my phone, i kept turning on and off repeatly and my computer cannot read my iphone 4 as well.. how??

    my warrently already over..
    and i lived in singapore..
    solutions please...
    <Personal Information Edited by Host>

    Try http://support.apple.com/kb/HT1808

  • ITunes Fix for Manually Moving Music and other Media

    Intro
    Any iTunes 7.x user who manages their own music library outside of the "iTunes Music" folder might be able to tell you that iTunes DOES NOT respond well after manually moving tracks from one place to another on their computer systems. In fact, any file you move becomes immediately unplayable in iTunes. And, if you're anything like I am, losing several years worth of song rating metadata and playlists is not a good incentive for change. However, one thing others might not be able to tell you is that there's an easy workaround for the problem and you get to keep your playlists, ratings and other info. Read on to learn about the workaround.
    About the Workaround
    The workaround is a simple hack I devised after recently transferring a good portion of my music library between hard disks and running into problems with iTunes. The fix steps provided below are intended to circumvent the problems with iTunes and give users the freedom to move songs and other media files on their computers while maintaining the integrity of both the ratings and the playlists. Meaning you won't need to manually update the song locations in iTunes one-at-a-time, which, at version 7.02 is the only way to accomplish this task using the program.
    Please be aware that not all information is retained using this workaround. What will be lost are the following: the "Recently Added", "Recently Played" and "Top 25 Most Played" iTunes Smart Playlists; any media file play counts; last played information; and possibly some other data used only internally by iTunes.
    So, if you're comfortable parting with some metadata while keeping your cherished song ratings and playlists intact during file relocation, read on to learn how to use the workaround.
    Workaround Steps
    The following instructions walk step-by-step through the process of this workaround.
    Note: All backslashes used in file paths have been converted to forward slashes so that they will adhere with MySpace XSS security validation checks. These altered paths can still be copy/paste into Windows Vista's Explorer program once the Username is changed to the User Account where the iTunes files reside.
    Preparing for the Move
    Before you move your files, do the following:
    1. Close iTunes.
    2. Create a backup copy of the following files:
    iTunes Library XML (iTunes Music Library.xml)
    Note: Vista users can find the Library XML at C:/Users/Username/Music/iTunes
    iTunes Music Database (iTunes Library.itl)
    Note: Vista users can find the Music Database at C:/Users/Username/Music/iTunes
    Moving Your Files
    This part should be self explanatory, but while you do it make sure to note the following two things:
    1. The path where the files were previously stored (e.g. D:/Music).
    2. The path where the files will end up (e.g. E:/Music).
    Execute the Fix
    After your files are moved, complete the following steps to implement the fix.
    Note: Do not open iTunes during this process.
    Hack the iTunes Library XML
    Once the files are moved the Library XML file locations will be out of sync. Follow the steps below to update them so that they now reference the correct file locations.
    1. Open the iTunes Library XML with a Text Editor with a Find/Replace function.
    Note: Vista users can find the Library XML at C:/Users/Username/Music/iTunes
    Tip: Do not try to do this with Dreamweaver if your Library XML is greater than 10MB.
    2. Perform a Find/Replace using the following inputs:
    Find: Path from Step 1 of Moving Your Files
    Replace: Path from Step 2 of Moving Your Files
    3. Confirm your results, and then save and close the Library XML.
    Delete the iTunes Music Database
    Hacking the iTunes Library isn't enough to fool iTunes. Like the Library XML, the Music Database also holds the file locations of all of the media stored within the program. And it's smart enough to wipe out the Library XML hack if iTunes is opened before completing this step.
    Ensure you have backed up the iTunes Music Database (iTunes Library.itl) and delete the file.
    Note: Vista users can find the Music Database at C:/Users/Username/Music/iTunes
    Back in iTunes
    Once the fix is in place you can now open iTunes again. You will notice that all of your playlists, music and other items have vanished. In order to recover them all (with the exception of the Smart Playlists mentioned in the About the Workaround section above) we'll need to import the hacked Library XML file back into iTunes.
    1. Open iTunes and press CtrlShiftO or go to File > Import…
    2. Navigate to and Open your modified Library XML (as pictured below).
    3. iTunes will then begin importing the contents of the XML file (as pictured below).
    Note: This process may take a while, depending on the size if your library.
    Wrapping Up
    Once the import process is complete iTunes will look almost exactly the way you left it, with the exception that some playlists have been duplicated and the number of songs may be a hair off. To fix this problem delete any duplicate playlists in the "Library" panel in iTunes. You can now test out the changes by selecting an item moved earlier and testing it out. All that's left from there is to let iTunes perform any automated analysis it needs to do and rock on.
      Other OS  

    Holy Smokes:
    I appreciate your detailed workaround post. My question is this: I use iTunes to keep everything organized (though I'm well aware of the shortcomings...) and can use the simple solution that Chris from CA posted, but I don't have room to consolidate everything. My read on consolidating is that you copy from wherever you have your music located (and right now my music is outside of the MyMusic/iTunes folder, as that backs up to my work server) and so you have to have enough room for all of your music to be copied (and then you delete it from its prior location). That's how Apple describes it in, e.g., http://docs.info.apple.com/article.html?artnum=301748. I ain't go that kind of room. Is there any way to make the move to a completely different PC by following the simple option? From the posting I just linked it sounds like you MUST consolidate whether you use you iPod to move things or use an external drive.
    Of course, I can use your workaround, but I thought I'd ask first. Many thanks.
      Windows XP Pro   iPod Video 60gb

  • Read Only for "Group" and "Others" via SMB

    I see when Windows vista users of my OS X 10.5.8 server save a file to the server, the permissions show on the server as Read & Write for the owner and Read Only for 'Group' and 'Others'.
    Is there a way I can make the OS X server always make 'Group' and 'Others' always be Read & Write?
    Thanks!

    It's using a shared component LOV cleverly called LOV_YN which consists of a static LOV with
    1 Display=Yes, Return=Y
    2 Display=No, Return=N
    The settings in the LOV section on the item iteself:
    Named LOV: LOV_YN
    Display Extra values: No Dynamic translation: Not translated
    Number of columns: 2 Display null: No
    Null display value is blank as is null return value
    Item was setup as a radio group and was only converted over to a select list to work around this issue. Let me know what else you need and thanks again.
    Rgds/Mark M.

  • Photoshop cs5, Opening Tiff into Raw. Some open and others don't.

    I have installed cs5 onto my Windows Envy laptop. I want to open my tiff into raw. I can do that with some of the tiff files and others I cannot, the option is greyed out. Then the pic. next to it works and the one after does not, so forth and so on. I have gone back and forth in changing the camera raw preferences settings to try and get something going to no avail.
    Any answers ??
    BK

    Thank you for your willingness to help. I have since discovered that if I have layers on that particular tiff file I would have to flatten it first to open in raw. Thanks again

Maybe you are looking for

  • Install Reader 9

    I cannot install Reader 9.0, 9.30 or 9.33, downloaded from the Adobe site with Firefox, and installing on Windows XP. I get an error message saying " the file ......Acroread 9.0.msi is not a valid installation package for the product Reader 7.0.5. "

  • Nokia X6-00 Connection Problems.

    Hi All, I've recently 'upgraded' my phone to an X6 16gb model from my trusty old N95 8gb. I use my phone as a tethered modem for my netbook running Ubuntu/Windows 7. All worked fine with the N95 via cable or bluetooth, but I've noticed a few issues w

  • Me2l Execution error

    HI,  while executing ME2l , i am getting the below abap error, Category               ABAP Programming Error Runtime Errors         SAPSQL_PARSE_ERROR Except.                CX_SY_DYNAMIC_OSQL_SYNTAX ABAP Program           RM06EL00 Application Compon

  • Tutorials on ACR 6.1 new Lens Correction features

    Hi, We are all experienced users of cameras/Photoshop/ACR etc., and wizards at learning by trial-and-error, but I think it might be really helpful if there was a good tutorial (preferably by Adobe), to deal with the new features of lens corrections i

  • ICloud backups blocked by ISP parental filters

    My ISP, ie BT Broadband, has recently started blocking iCloud under their parental filters. This meant that I couldn't connect a web browser to www.icloud.com and my iphone and ipad backups to icloud were also failing. I can add URLS to the whitelist