Cannot find resource files in the MIDlet

My Mission:

Take my existing j2me application and compile and run it into the RIM JDE so that he qualified for the BlackBerry App World.

What I've done so far:

I took my j2me MIDlet application and copied in Eclipse (with RIM JDE plugin). I finally got to the point where he found my class main MIDlet, compiles and runs. Yes!

Problem:

Unfortunately, all references to image files are lost. Therefore, any references to these files throws an exception.

More information:

All my image files are in the 'res' folder (a little less 'src' in the hierarchy tree). I tried to move the images to different folders, but without success. And I also tried to reference the same image in different ways files: "/ res / image.png", "res / image.png", "/ image.png", "image.png".

Has anyone out there successfully developed a MIDlet using the RIM JDE? Any help is appreciated! -Jason

Thanks for the suggestion! It lead me to a solution...

Although I tried to add the res folder to the path of the front structure, it seems that he was in the wrong place. Or, at least, that's what it seems, because everything I did to make it work was to create a new "res" folder from a level to the high (just below the project and at the same level as the 'src' folder) and move my picture files in this folder. I added this file to the project build path, then my reference to "/ res / image.png" worked!

And, Yes, I have the MIDlet leaves the Netbeans environment.

Tags: BlackBerry Developers

Similar Questions

  • Error message when you try to download Windows Defender: "first remove Microsoft Client Protection." Cannot find this file through the Add/Remove, search, including hidden or Win Explorer.

    Original title: trying to download

    WinXP SP3, Security Scan run and d/ld: error message when you try to download Windows Defender: "first remove Microsoft Client Protection." Cannot find this file through the Add/Remove, search, including hidden or Win Explorer. What to do now would be much appreciated.

    Also have a related problem about MS Maliciouws software removal tool. For download, but read in the KB that: in XP, the vacuum cleaner will remove the malware, but doing so may trigger the File Protection Win with damages to my operating system.  the tool will attempt to repair the damage, but to rehabilitate prior to infection, that I need to insert the CD of Win. As my computer came with Windows preinstalled, I do not have a disk and will not take the risk of damage, that I can't fix. Do I not download or not... ? Another solution... ?  I also fear that this tool could settle into the routine Win Update and need guidance on the prevention of this facility, if possible, or what to do if it cannot be prevented.

    It can have nothing to do with any of the foregoing. " I'm relaying only because it occurred during the same mission of update: had msg of error that Win Firewall has not been set as a default, which reset, but found this hidden file when searching for the Protection of the customer: "Win 32/Hackdef' - it was a config with the extension ini file and was deleted by Scan."

    Thanks a lot for any assistance.

    scate 39

    Hello

    ·         You have Microsoft Security Essentials on your computer?

    If you have windows installed on your computer security essentials, then you will not be able to install Windows defender. Windows Security Essentials has antispyware component installed.

    You get the error because you have installed MS Security Essentials, which has its own function to antimalware. You don't need or want to install Windows Defender, too. Leave MS Security Essentials installed and do not turn it off.

    See also:

    You can turn on or turn on the firewall in Windows XP, please see the link below:

    http://support.Microsoft.com/kb/283673

  • Cannot find a file in the temporary Internet files

    I was sent a xls file yesterday through Outlook Express 6

    I opened the file and worked on it and a copy of my work has been registered in
    C:
    Documents and Settings
    Administrator - IBM30
    Local
    Temporary Internet files
    Content
    PGMNF5R4
    mywork.xls
    However I can not find in any case to reopen the case
    In fact I don't see the Temporary Internet Files folder or below
    I have spent at Exploer tools display, Options files and check "Show hidden folders and files"
    I spent exploring tools Display Options records and check "display the contents of system folders
    I happened to another user and copied the entire D & S folder but still cannot see the temporary Internet folder
    However when I open the original previously worked on the file and go save as he tries to save it to the folder PGMNF5R4 and shows me the file I worked on yesterday so I know it's on my hard drive somewhere
    I use XP Pro SP3

    Hello

    There is no other choice to extract the file from the computer.

    However, you can use your favorite search engine and look for any third party software that can help you recover the file.

    Note: Microsoft cannot guarantee that problems resulting from the use of third-party software can be resolved. Software using third party is at your own risk.

  • Managed to install XP Mode but cannot find "Windows XP Mode" in the folder "Windows Virtual PC" and also cannot find any file with the extension of the vmc

    Dear friends,

    I'm using Windows 7 Ultimate 64 bit

    I'm really happy with the answers given on this subject, but after the installation of "WindowsXPMode_en - us.exe" and "Windows6. 1 - KB958559 - x 64 - RefreshPkg.msu ".
    installation went well but I can't find any file on my computer with vpc extension, and I don't see the Windows XP Mode folder in Program Files.
    When I try to reinstall, I get the message that it has already been installed.  In folder options, I enabled see all files including system files.
    Thank you!

    Thank you very much!!!

    After I posted the question (and struggled with the issue for a while),
    I decided to uninstall Virtual PC and XP Mode, and then when I reinstalled
    them everything was fine.
    In any case thanks for the elaborate and useful response which I'm sure
    others will benefit from it.
  • During startup, I get an error message that the registry database cannot find a file and modify registry to delete the reference to the file in the registry. How can I do this?

    Original title: Registery Error Message

    During startup, I get an error message that the registry database cannot find a file and modify registry to delete the reference to the file in the registry.  How can I do this?

    Hello

    • What were the changes made before the problem occurred?

    I recommend you perform the clean boot.
     
    Configuration of your system in a clean boot state helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.
     
    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:
     
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135 
     
    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

  • Try to install XBOX controller in Vista, error message "cannot find a volume for the extraction of the file. Please check that you have permissions required"

    When I try to download my xbox controller, it says cannot find a volume for the extraction of the file. Please make sure you have the required permissions. What - what this means and how I can solve it?

    * original title - cannot find a volume for the extraction of the file. Please make sure you have the required permissions. What this means and how I can solve it? *

    Hi pamelagreen,

    Be sure that you install the software as an administrator.  Right-click on the file and you should see the menu option here.  Also, make sure you have the correct software:

    http://www.Microsoft.com/hardware/windowsvista/support.mspx

    I hope this helps!

  • Vista error lance when the mdb Access 2007 file is "double click": Windows cannot find this file (the file clicked)

    File mydatabase.accdb contains a startup with this VB Code form:

    Private Sub Form_Open(Cancel As Integer)
    Application.Quit
    End Sub

    When this mdb file icon is "double click", Vista throws the error message "Windows cannot find this file...". ».
    Right-click on the icon of this mdb file and 'Open' is selected, Vista get error "Windows cannot find this file...". ».
    Right click on this file mdb and 'Open with' icon is selected, and then Access 2007 is selected, the file opens in Access and closes normally.

    No amount of sleep before or after that Quit has any influence on behavior.  However, copy the following code:

    Private Sub Form_Open(Cancel As Integer)
    MsgBox "Stop".
    Application.Quit
    End Sub

    will open the file normally, vomit MsgBox with the string 'Stop' and closes normally when "OK" is selected.

    It worked on Access 2003 on Windows XP.

    It's rock solid reproducible (on my Lenovo T400).  It fails in the same way when Vista arrives in a "clean boot".

    Any ideas?

    Dudge

    Hello DudgeonousTweet,

    Thank you for your response back!

    I would say that this question visit the link below for support with Microsoft Access.  You can submit a question or search FAQS.

    Discussions in Access database General Questions:
    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.access&lang=en&CR=us

    Engineer James Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • "The system cannot find specified file", or "refers to a location that is not available" in my folder music Public

    I have a problem with several files that I can't remove. I bought a new laptop Windows 7 a few months ago, and my music library is located in an old Mac I installed iTunes and copied everywhere, but for some reason, a couple of directories has become corrupted in the process. I was able to move a couple of them from 'C:\Users\Public\Music' to 'C:\Corrupted records' so I don't have to look at, but one of them is

    refusing to move. If I try to open it, I get the message "C:\Users\Public\Music\P.O.D. refers to a location that is unavailable. It could be on a hard drive on this computer or on a network. Make sure that the disc is inserted correctly, or that you are connected to the Internet or your network, and then try again. If it still cannot be located, the informaqtion could have been moved to another location. »

    If I try to get the properties, the type of file is a folder (.) that opens with Windows Shell common. Reading alone and Invisible are unchecked. It is not shared. The requested security information are either unavailable or cannot be displayed. There are no previous Versions. I tried optimizing for music and General items.

    I tried to remove it from a command line, and although he can be seen in the directory, I get an error if I try to delete or move it. I tried to delete it in Mode without failure. I tried to create another folder with the same name, and it creates a folder without end '. ", I'm able to remove, but the original is still there. I have tried uninstalling iTunes and iTunesHelper.exe cessation force.   I ran a chkdsk.  I looked in the registry. I tried to reboot in safe mode and try it. I tried to create a new account and delete from there. I tried to reset the permissions. I even deleted my entire library of music. If I try to change properties it tells me that the "system cannot find specified file."

    This issue is driving me crazy... I should be able to just go and start over, but I won't be able to copy this particular music folder. I could live without it, I suppose, but I wouldn't not to-I fear that this will happen in folders more if I can't find a solution. I could ignore it, but I am too a retention... I installed servers in a previous life, and when such things happen that we do something more deep is what concerns me in particular.

    Any suggestions? Please?

    Hi Zarebeth. I have the answer to your problem. The problem you are having is the same problem I had, it's a file name that ends with a '. '. (one point). That's THE problem, which has also caused all of your previous attempts remove this folder to fail. Windows does not allow you to create such a file, but Mac FACT (you mentioned that your music library lay on an old Mac)! Try for yourself, create a folder in Windows called "P.O.D." and Windows automatically re-writing this folder as "Painter" (note the last missing point). MAC doesn't have a problem with that, you can call your folder "P.O.D." witout any problem (but also allows you to call this 'Painter' folder (note the last missing point)). The only problem is when a folder created on a Mac device ends on a computer Windows, that happened when you copied the musicfolder of your Mac on your Windows 7 laptop. For example, I had the problem with music "C:\Users\Public\Music\M.I.A" and "C:\Users\Public\Music\T.I." after that I copied the files from my Ipod Touch (also a feature of Mac of course) for my new Windows 7 laptop to function.

    Now, I can only tell you how to remove this folder, I don't know how to recover all the data that have remained in this "indelible" folder (if any). What you can do of course, is to return to your old Mac, rewrite the "P.O.D." folder as "Painter" (note the last missing point) which will BE recognized by your computer laptop Windows 7.

    It's very simple, and you'll wonder how the sollution might actually be this simple :))

    GO to "command prompt" (start > all programs > Accessories > prompt) then in the command prompt (the small black screen with white letters), you type (in your case):

    RD/s '\\?\C:\Users\Public\Music\P.O.D.

    RD is as a function of deleting files (not for the files).

    You will then be asked if you are sure "(Y/N)" and then of course, you type 'Y' and press enter! " And like that... begone is the folder which you so frustrated! Happy days are back! : )

  • Can't update windows like systems to give me an error that it cannot find a file and he needs me to insert the media.

    Original title: re install windows 8.1.

    I have problems with my computer and want to re install windows 8.0. I had upgraded my computer windows 7 to windows 8 but can't update windows like systems to give me an error that it cannot find a file and he needs me to insert the media.  I insert the windows disc 8, but the system indicates that it is not the correct information.  He is looking for another disc?  I created a recovery usb drive, but that doesn't seem to help.  I feel that I have completely new install windows 8 but I am nervous of course think I mess up something.  given that this computer was originally shipped with windows 7, I have to use the recovery discs I've done initially or is there a way to create new ones with the new windows 8?

    Hello and welcome!

    If you are using a CD to upgrade of Windows 8, then there not all reinstall the files included for a full Windows.

    Your best option is to use the recovery partition on your hard disk or the recovery CD from your PC back to Windows 7. Then Windows 7 SP1 upgrade and get all updates. Then, move to Windows 8 again.

  • LR 5.7 cannot find my files already edited because I accidentally deleted them. I have original and exported raw files edited JPEG images on an external hard drive. How do return on LR the possibility to repeat already published photos complete with the p

    LR 5.7 cannot find my files already edited because I accidentally deleted them. I have original and exported raw files edited JPEG images on an external hard drive. How to get back on LR the possibility to repeat already published photos complete with a history of editing? Thank you.

    Thank you Joe Maniac.  I deleted the original linked files on my internal hard drive which were dng files, but had copies of the raw files edited and edited the exported raw files (in JPEG format).  I don't have copies of dng files.  So what I ended up having to do was import the original raw files which then made a DNG copy on my internal hard drive.  The link has not changed, but now the files were back in the original track for missing photo alerts disappeared and I was able to see my change history.  The process has been painful, but without the dng, I had nothing to do a link to more if at least re-import them files has recreated the dng.  I don't know if there was an easier way, but it seemed that the problem did not the link deletion.  I use LR for a few years, but it was a rookie mistake, precipitated by my hard drive being so jammed up I ended up delete what I shouldn't.  I should have just moved the dng and the link to an external hard drive. Thanks again.

  • The initial launch of DW CC 2014, get following error: "cannot locate the resource file in the Configuration folder. This file is Spectialized to run Dreamweaver. Please reinstall the application. "This app has been updated through CC.

    I have to first remove the DW? With the help of PC Win 7.

    The error message: "Unable to locate the resource file in the Configuration folder", so it seems that something is missing. Could be a permission problem... I would suggest:

    1. go to a user admin account

    Connect using built in Administrator | Create the local admin account. 7, 8, Windows Vista

    Install or run Adobe applications in the new user account. Mac OS X

    2 remove the application DW CC 2014 by uninstalling or using the cleantool.

    https://helpx.Adobe.com/creative-cloud/help/install-apps.html#uninstall apps

    Use the CC cleaning tool to resolve installation problems. CC, CS3 - CS6

    3. manually delete the directories of config according to KB: (you need to of course search the CC 2014 folder instead of the older versions in the KB)

    Restore preferences | Dreamweaver CS4, CS5, CS5.5, CS6

    This step will ensure that also the configuration file will be regenerated on re installation!

    4 reinstall on the new admin account and test again. If works please go back to the old account and test again.

    Good luck!

  • InDesign Mac CC: "cannot open resource file' popup message when loading a feather in my plugin

    We have a pretty simple plugin for InDesign, which we have maintained since the time Pre-cs.  We would wear to CC.  Everything works on Windows and Mac, with one problem.

    The plug-in displays a file save dialog box, which is customized with a couple of additional controls for additional information from the user on the exported file.  As far as I know, there is no way to do it with the InDesign SDK directly, so we do it with code specific to the platform and resources.  Under Windows, we have this by calling GetSaveFileName in the Windows API and by setting a custom resource .rc and "hook" function with OFN_ENABLETEMPLATE and OFN_ENABLEHOOK.  On Mac, until CC InDesign, we asked the function of carbon NavCreatePutFileDialog, with a style file old Pier and an event proc handling kNavCBCustomize and al.  This has all worked for a long time great.

    However CC InDesign on Mac is 64-bit only, and carbon will not work with it.  So, we took the leap in cocoa and put implement with [NSSavePanel setAccessoryView:], where load us a NSView custom from a pen integrated into our bundle of plug-ins.  And it works very well also.  However, when the plugin code call [NSNib initWithNibNamed:bundle:], InDesign CC appears a warning message saying: "Cannot open resource file."  However, the resource (the pen) is obviously loaded correctly.  Thus, the user must dismiss this apparently false alert box before being able to move forward.  Once the alert is dismissed, the NSSavePanel works very well, with our custom NSView.

    I can say that the popup alert just InDesign itself, rather than a subsystem of Mac underlying as cocoa, because he has the title of "Adobe InDesign" and the gray dark background as the rest of the CC of InDesign and the OK button has an orange highlight around it.  It is clearly not a standard thing of Mac as a NSAlert.  And if I do the same calls to [NSSavePanel setAccessoryView:] et al. in a stand-alone application, obviously no this popup appears.

    It seems that somehow our call to load the file Nib triggers some kind of hook in InDesign.  My guess is that it's a hook for InDesign load its own resources, which is hanging by mistake in features our plug-in.

    I tried two approaches to load the Nib enumerated file here:

    http://StackOverflow.com/a/5855561/3207828

    And they both work, the pen is responsible and we can get our NSView to it and use it in the NSSavePanel.  But if we call [NSNib initWithNibNamed:bundle:], or [NSViewController initWithNibName:bundle:], CC InDesign displays the message box as soon as the call to load the pen is made.

    Why InDesign CC showing the message 'Cannot open resource file', and how can it be prevented?

    Thank you

    Dan

    I thought about it.  The problem was the plugin code to create a ResourceEnabler object, which is needed by older versions (CS *) of the plug-in on Mac to locate resources .rsrc for the call of NavCreatePutFileDialog of carbon with the carbon resource custom.   I #ifdef'd out so that the ResourceEnabler object is not created during the generation of Cocoa 64 bit for the CC and the offending message popup no longer appears.

    I do not understand why the ResourceEnabler object is needed for carbon, resources of the plug-in to the top of the stack of the resource, but I do not completely understand why the presence of the ResourceEnabler object would have an effect on a call from cocoa to [NSNib initWithNibNamed:bundle:], which also works fine.

    Note that simply create the ResourceEnabler object does not trigger the popup even if the bundle of plug-in contains no carbon resources to move to the top of the stack.  It's only when I go to load the Nib file that the ResourceEnabler seems to want to get involved and complain that it cannot find anything.

    So if anyone from Adobe is reading this, I would say that set you the ResourceEnabler feature so that it does not interfere with loading crane of cocoa.  It is perhaps best to just do the ResourceEnabler a no - op in InDesign CC.

  • Dynadock V10 - "error cannot find Setup file" INSTALLER ERROR

    Hi I have a toshiba dynadock V10.

    Whenever I try to install the drivers, that it says "error cannot find Setup file. I have downloaded the latest drivers and off my anti virus and cut all the proiceses running and no go. There are a few references to this on the internet, but none has a solution.

    I amn trying to install it on an equium U400 running windows 7.

    Curiously, it loaded on an old dell pc easily!

    I spent hours looking on the net and there is no answer. I have nothing showing in the programs to uninstall.

    Thank you

    > Oddly enough it loaded on an old pc easily!
    Hello

    This means that drivers are ok and that there must be something wrong with the system pre-installed on Equium U400.
    How to proceed?

    It is important that you don't would NOT connect the Dynadock to the laptop before installing the software and drivers was not finished.
    Therefore, you need to install the software first. Then after new reboot connect the Dynadock to portable and installation would end the next steps.

  • Error message: "cannot find this file" and songs seem to disappear from Windows Media Player 11.

    Original title: my songs seem to disappear from windows media player 11

    I make a playlist and some of the songs come with a "cannot find this file" dialog box I click on 'place to open the file' and the song is there but will not play. Help, I'm losing songs at an alarming rate.

    Hi Akledge,

    1. this happens only for songs with a specific file format?

    2. What is the full error message that you receive?

    3. have you made a recent software or hardware changes to the system?

    Method 1:

    You can try to start the Windows Media Player (WMP) Fixit from link and check if it helps:

    Solve the problems of Windows Media Player video and other media or library

    For more information, see the article:

    Error message when you type the name of a file to play with Windows Media Player: "Cannot open file."

    Method 2:

    If the problem persists, you can visit the article to rebuild the WMP library and check if it helps

    You cannot view, add, or delete items in the library of Windows Media Player 11

    Note: Windows Media Player automatically rebuilds the database.

  • Cannot copy #BSSC: cannot find specified / file path.

    Recently, I got my data from formatted hard drive and it to stored in my partition active, but I'm unable to copy data from one place to another place, and it shows the same error message I wrote on the start menu. Can someone tell me how to fix it!

    Cannot copy #BSSC: cannot find specified / file path.

    Hello Leal,

    This problem can occur because the file path / you are specifying no longer exists. This means that the destination on your computer folder no longer exists even if it is displayed in Solution Explorer.

    To resolve this problem, use one of the following methods:

    • Recreate the folder on your computer and then copy or move the file to the folder.
    • Copy or move the file to another folder on your computer...

      Let us know if that helps.

      Marilyn

Maybe you are looking for

  • Crash when you press BACKSPACE.

    Whenever I press the BACKSPACE key firefox just goes down, it seems not serious if I type in the address bar or on a Web page. He sits for a few days, I haven't installed firefox or windows 8 (No 8.1) updates, at least not to my knowledge.

  • Qosmio F50-126: how to activate the integrated graphics card?

    Running Windows 7 on F50 - 126.After checking my specs on the site Web of toshiba, here are the details on my graphics card: -. Manufacturer: NVIDIA;type: NVIDIA; GeForce; 9700 M GTS supporting TurboCache; technologymemory: 512 MB dedicated VRAM (up

  • HP Officejet Pro 8610: How can I get a report with the total number of pages printed on my HP Officejet Pro 8610?

    The number of pages that print is so critical to a choice to use the "HP Instant ink Plan' or not, how can I find the total number of pages that I printed on my brand new (installed 2 days ago) 8610?  And if I can, there are a total of 'resettable' o

  • Download button does not appear on Youtube and 4shared

    I have 2 PCs at home both running Windows XP. I could see 'Download this video' button when watching youtube or listen to music at 4shared. But the download button does not appear on the other PC. I was watching a video of the same source... THERE? H

  • MacBook Pro and SanDisk Ultra II 960 GB does not

    I bought two SSDs to 960GB SanDisk Ultra II for installation in a Late 2009 27 inch iMac and a MacBook Pro mid-2012. I could absolutely not anything other than a white screen on the 27-inch. I could get the external computer to boot via USB, but when