Newbie here, get an error...

Hi, Im new to Java and JavaME and Blackberrys as a whole!

I started my project in netbeans editor in Chief seemed easier.  Now I'm holding a project running from this BlackBerry JDE editor and hit an odd error.  Probably a lack of understanding on my part.

When the program is run, it cannot find the graphic file to a sprite.  The code I use is as follows:

 
...

public void setup() {
     // Create the Sprite.

      Thread t = new Thread(this);
      BoardR=270;
      try {
          //Get Sprite Setup
            int gb=0;
            final Graphics g = getGraphics();
            w=getWidth();
            h=getHeight();
            mLayerManager= new LayerManager();
            Image frames = Image.createImage("/water6x6a.png");
            MMx=640;
            MMy=384;
         }
     }
...

When it hits the frames of images of line = Image.createImage("/water6x6a.png)" it cannot find the file.  The file is in the same folder as the Midlet which is running.  I also tried to remove the forward slash "/", without success.

I try to launch it in the Simulator, and I get the error thrown in the debugger.  Hats are the same file.  I'm a little surprised... that way, but it's just one thing I can't figure!

The exact error I see in the debugger before the java.io.IOException law, is:

"CAFETERIA: did not water6x6a.png"

Last note, it works very well in Netbeans unmodified.

Thanks in advance.

Problem solved.  I can't put my finger on it well.  I deleted the project and then recreated.  The only difference is that I've changed the directory that the project was in.  Now the project name and the corresponding folder.  I don't know if that was the reason, but the problem is passed.

Tags: BlackBerry Developers

Similar Questions

  • When I press the button Add card on my phone app here is I get the error message

    Hi thanks, my cards have been on my iPhone 6plus for quite awhile. I recently bought an iwatch series 1. Watch and phone software is up to date. My app to watch on my phone recognizes my cards when I press the map button Add on my phone app here is I get the error message.

    Hello

    To be able to add cards to pay Apple on your watch, it will first the configuration of the area selected (like on your iPhone):

    • On your iPhone, in the application of the watch, go to: Watch My > general > language and region - check Format correct region is selected.
    • If they are already correct, it can help to select again the two the same Format of the region and also the language of the system itself.

    Then follow the instructions here to add cards to the Watch:

    More information:

    Pay help, add maps of Apple - Apple Support

  • I can't use a link "click here" in an email that I used to. I get the error message. How can I fix

    When I try to use a clickable link, like in an e-mail that says 'click here', I get an error message. I know that there must be a setting that I don't see.

    What kind of error message you get?

  • Please someone tell me why I get this error, as my D: recovery drive has 3 GB of space on 28, I don't know how to delete it and it may be the cause but I'm not sure, that's why I'm here :(

    The error is the reference 0x00c91187
    memory 0x47be01e0. The memory could not be read

    Here is a link to the screenshot of my http://tinypic.com/view.php?pic=1e56v6&s=8#.VCyjYPldVOZ error

    I don't know why I get this error and its very annoying, my hard drive has 3 GB of space for 28 gigatbytes, why is there so much space taken up there and how I delete it without hurting important files

    It dose it when you try to run an apillication game. or other

    Sorry for not being detailed

    I hear by clear weather, how to free up space on my D: recovery drive?

    and I am referring to the game app is soldier fonts 2, it gives me error when I start the game

    and no, I only get this error with the soldier make game 2 application only

    and here's a better link RII

    Sorry for the inconvenience

    http://Tinypic.com/view.php?pic=1e56v6&s=8#.VC3GRfldVOZ

    OMG IT WORKS SO BAD, I HAD TO UPGRADE TO WINDOWS 8.1 WAHOOOOO

  • I get an error (twelve updates), trying to update CS5 Master Collection.  I used the chat and was told to come here.

    I get an error (twelve updates), trying to update CS5 Master Collection.  I used the chat and was told to come here.

    update directly, http://www.adobe.com/downloads/updates/

  • Whenever I play a Face Book or other web sites after that time is up I get an error message that says something about a Script is not responding or her busy. Gets very boring

    After playing for some time a game face book or other websites, I begin to receive an error message that says a busy Script or does not. He has the ability to 'Continue' or 'stop' the script when I click to continue the same error keeps popping up all the time. Same as with by clicking on the 'Stop' the script option. Script # is https://s-static.ak.facebook.com/rSrc.php/vi/yx/r/LKHquoz1.v.js:5. Why I get this error? It gets really annoying. I hope you can help.

    can you check this problem on Firefox 10?

  • [Newbie question] Get * = 08004, TimesTen error = 818 ODBC error

    Just play with 10 times and I'm getting following error starting from data source

    bash - $3.2. / ttadmin - cachestart cachealone1
    [TimesTen] [driver ODBC of TimesTen 11.2.1.3.0] sum permanent partition sizes and temporary (2320 MB) exceeds the maximum size (2047 MB) on this platform

    ODBC = 08004, TimesTen error = 818 error


    Where Timesten hitting this limit of 2047 MB? Can I increase the maximum size by making some configuration changes (my machine like around 6 GB memory [Oracle DB is also installed on the same node]). I'm checking the various operations using larger tables (about 2 GB DB size).


    The configurations are:



    [root@stin77 ~] # / sbin/sysctl Pei
    NET. IPv4.ip_forward = 0
    NET. IPv4.conf.default.rp_filter = 1
    NET. IPv4.conf.default.accept_source_route = 0
    kernel. SysRq = 0
    kernel.core_uses_pid = 1
    NET. IPv4.tcp_syncookies = 1
    kernel.msgmnb = 65536
    kernel.msgmax = 65536
    kernel.shmmax = 4294967295
    kernel.shmall = 268435456
    FS.file - max = per 6553600
    NET. IPv4.conf.default.rp_filter = 1
    NET. IPv4.conf.default.accept_source_route = 0
    kernel. SysRq = 0
    kernel.core_uses_pid = 1
    kernel.shmmni = 4096
    kernel.SEM = 250 32000 100 128
    NET. IPv4.ip_local_port_range = 1024 65000
    NET. Core.rmem_default = 262144
    NET. Core.wmem_default = 262144
    NET. Core.rmem_max = 262144
    NET. Core.wmem_max = 262144





    bash - $3.2 uname - a
    Linux 2.6.18 - 92.el5PAE #1 SMP stin77 kills Apr 29 13:31:02 EDT 2008 i686 i686 i386 GNU/Linux


    [cachealone1]
    Driver=/localhome/Oracle/TimesTen/TimesTen/tt1121/lib/libtten.so
    Data store = / localhome/oracle/Timesten/TimesTen/tt1121/info/DemoDataStore/cachealone1
    TempSize = 320
    PermSize = 2000
    PLSQL = 1
    DatabaseCharacterSet = WE8MSWIN1252
    OracleNetServiceName = orcl


    Kernel parameters:

    [root@stin77 ~] # / sbin/sysctl Pei
    NET. IPv4.ip_forward = 0
    NET. IPv4.conf.default.rp_filter = 1
    NET. IPv4.conf.default.accept_source_route = 0
    kernel. SysRq = 0
    kernel.core_uses_pid = 1
    NET. IPv4.tcp_syncookies = 1
    kernel.msgmnb = 65536
    kernel.msgmax = 65536
    kernel.shmmax = 4294967295
    kernel.shmall = 268435456
    FS.file - max = per 6553600
    NET. IPv4.conf.default.rp_filter = 1
    NET. IPv4.conf.default.accept_source_route = 0
    kernel. SysRq = 0
    kernel.core_uses_pid = 1
    kernel.shmmni = 4096
    kernel.SEM = 250 32000 100 128
    NET. IPv4.ip_local_port_range = 1024 65000
    NET. Core.rmem_default = 262144
    NET. Core.wmem_default = 262144
    NET. Core.rmem_max = 262144
    NET. Core.wmem_max = 262144

    You are running TimesTen 32-bit on a 32-bit o/s. regardless of the quantity of memory has the machine, there are limits on how much can be used by an individualized process and additional limits the size of the file etc TimesTen 32 bit is limited to a maximum of 2 GB data store size.

    To create a data store with a total size greater than 2 GB, you need a 64 bit machine running an o/s 64-bit and 64-bit TimesTen. Then, the only limit is the amount of memory physical you in the machine...

    Chris

  • Windows Defender does not: whenever I have try to turn it on I get an error message informing me then Defender is stopped

    Hi I am a newbie for windows 7 and a kind of desire, I was still with windows xp! It is simpler and much easier to use "I tried to start Windows defender (which I am informed is included in my Vista) but every time I try to turn it on I get an error message informing me then Defender is stopped, but if I restart my computer it automatically lights Defender..." but this does not happen, I use Mcafee site advisor "could you please tell me if there is any chance that's causing the problem?"

    Hey JoanneWatson,

    Because this thread was started by someone else, and the age of the son, I suggest that you follow the link below to start your own thread.
     
    Ask your own question, helping the community help you specifically to your question. Don't forget to include all the details (your version of windows, your system specifications, any error codes etc.) that you can when you start your own thread.
    Thanks for posting on the Microsoft Answers JoanneWatson site!
  • Gets the error ORA-01779 after I added the column

    Hi, I'm a total newbie in APEX but collaborated with ordinary development Oracle (tables, views, packages, triggers, etc) for a number of years.

    I ve been assigned in order to respect an existing application to APEX. One task is to add a column to a single character named 'ACTIVE' to a database table and also present on a current project list page. The value can be 'Y' or 'n'. In the view which is the source of data for the project page ad 'Y' turned into 'Yes' and 'n' turned into 'no '. So far so good, everything works well.

    There is another page on which it is possible to create new or modify existing projects. This page uses a view as a source of data. On this page, I added a group of radiobutton that contains two options: 'Yes' and 'no '. When I select to edit a project in the project list page the second page is loaded and the correct option, 'yes' or 'No', is marked on the page. This group of radiobutton works exactly like a couple of other groups of radiobutton also represented with a single character column in the database. So far so good!

    However, when I try to save the project file by clicking on "Apply Changes" I get this error:

    ORA-20001: DML error: p_rowid = 50, ID = p_alt_rowid, p_rowid2 =, p_alt_rowid2 is. ORA-01779: cannot modify a column that is mapped to a table not preserved key

    What is the problem here? The new 'ACTIVE' column is added to the view, when I run the view I Don t get all records in duplicate, the underlying table has a column id as the primary key.

    Since I Don t know that APEX is under the hood it s hard tp what's wrong. Anyone knows the solution to this problem?

    / Magnus

    Hello Magnus,

    Is there an INSTEAD OF trigger defined on the view? Have you added the new column ACTIVE there too?

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • I get the error 'no reliable connection '. I tried to delete the file cert8.db as said, but it did not work and my time is correct.

    I get the error message "Untrusted connection" for a site I visit every day with the only option being "get out me of here!" I use Firefox version 39.0 and have Windows 8.1. I found a thread indicating how to solve this problem by removing the file cert8.db. I have used this method before and it worked then but it didn't this time. Tried to look elsewhere for help, but what I saw spoke of the time / date being off. However mine are correct sentence. Any help would be much appreciated.

    https://support.Mozilla.org/en-us/KB/server-not-found-connection-problem

    https://support.Mozilla.org/en-us/KB/Firefox-cant-load-websites-other-browsers-can

    https://support.Mozilla.org/en-us/KB/secure-connection-failed-error-message

    https://support.Mozilla.org/en-us/KB/connection-untrusted-error-message

    http://KB.mozillazine.org/Error_loading_websites

    This connection is Untrusted is sometimes caused because the
    the computer system clock is wrong. Check the time / date / time settings of the area.

  • I try tom open a gz file and get an error message: Broken pipe error 32: can someone tell me how to open the files of theses and recover what is in them, in layman's terms please.

    I used a program called by Kivisoft to recover my music files on my hard drive. He recovered their property, but they were in the form of a ZIP file with a gz file. But whenever I tried to open the ZIP file, I get an error message saying broken pipe 32 error. There, someone knows how to open these files and recover music on their part could you explain in simple terms that I'm not good with the user base of coding software. Thank you

    Here are some steps for you: http://www.wikihow.com/Extract-a-Gz-File

    You can start by trying utility GUI Tar to unzip the .gz file

  • Kept getting the error message of synchronization for the last days

    I was not able to sync my accounts in recent days.
    Here is the error message:
    "Sync has encountered an error during synchronization: the Firefox Sync server maintenance is underway, synchronization will automatically resume." Synchronize automatically retrying this action. »

    My last error log is below to:

    1416113749815	Sync.ErrorHandler	DEBUG	Flushing file log.
    1416113749817	Sync.Service	DEBUG	Exception: Login failed: error.sync.reason.serverMaintenance No traceback available
    1416113749817	Sync.Service	DEBUG	Not syncing: login returned false.
    1416113749817	Sync.Status	DEBUG	Status.service: error.login.failed => success.status_ok
    1416113749821	Sync.Status	DEBUG	Status.service: success.status_ok => success.status_ok
    1416113749821	Sync.Status	DEBUG	Status.service: success.status_ok => success.status_ok
    1416113749840	Sync.ErrorHandler	DEBUG	Log cleanup threshold time: 1415249749840
    1416113749844	Sync.ErrorHandler	DEBUG	No logs to clean up.
    1416114123789	Sync.Status	DEBUG	Status.service: success.status_ok => success.status_ok
    1416114123791	Sync.ErrorHandler	DEBUG	Beginning user-triggered sync.
    1416114123791	Sync.Service	DEBUG	User-Agent: Firefox/33.1.1 FxSync/1.35.0.20141113143407.
    1416114123791	Sync.Service	INFO	Starting sync at 2014-11-15 21:02:03
    1416114123792	Sync.Service	DEBUG	In sync: should login.
    1416114123792	Sync.Status	DEBUG	Status.service: success.status_ok => success.status_ok
    1416114123792	Sync.Status	DEBUG	Status.service: success.status_ok => success.status_ok
    1416114123793	Sync.Service	INFO	Logging in the user.
    1416114123793	Sync.Service	DEBUG	Caching URLs under storage user base: https://sync-129-us-west-2.sync.services.mozilla.com/1.5/9195458/
    1416114123795	Sync.BrowserIDManager	DEBUG	_ensureValidToken already has one
    1416114124226	Sync.Resource	DEBUG	mesg: GET success 200 https://sync-129-us-west-2.sync.services.mozilla.com/1.5/9195458/info/collections
    1416114124227	Sync.Resource	DEBUG	GET success 200 https://sync-129-us-west-2.sync.services.mozilla.com/1.5/9195458/info/collections
    1416114124227	Sync.Service	DEBUG	Fetching global metadata record
    1416114124227	Sync.Service	DEBUG	Weave Version: 1.35.0 Local Storage: 5 Remote Storage: 5
    1416114124227	Sync.Service	INFO	Sync key is up-to-date: no need to upgrade.
    1416114124227	Sync.Service	DEBUG	Fetching and verifying -- or generating -- symmetric keys.
    1416114124227	Sync.Service	INFO	Testing info/collections: {"prefs":1415684960.1,"tabs":1416002806.09,"clients":1415999571.59,"crypto":1411776108.31,"meta":1413417019.06,"bookmarks":1415995802.11,"addons":1415981896.19}
    1416114124227	Sync.CollectionKeyManager	INFO	Testing for updateNeeded. Last modified: 0
    1416114124227	Sync.Service	INFO	collection keys reports that a key update is needed.
    1416114124228	Sync.BrowserIDManager	DEBUG	_ensureValidToken already has one
    1416114124424	Sync.Resource	DEBUG	mesg: GET fail 503 https://sync-129-us-west-2.sync.services.mozilla.com/1.5/9195458/storage/crypto/keys
    1416114124424	Sync.Resource	DEBUG	GET fail 503 https://sync-129-us-west-2.sync.services.mozilla.com/1.5/9195458/storage/crypto/keys
    1416114124425	Sync.Status	DEBUG	Status.login: error.sync.reason.serverMaintenance => error.login.reason.server
    1416114124425	Sync.Status	DEBUG	Status.service: success.status_ok => error.login.failed
    1416114124425	Sync.ErrorHandler	DEBUG	Got Retry-After: 3600
    1416114124425	Sync.Status	DEBUG	Status.login: error.login.reason.server => error.sync.reason.serverMaintenance
    1416114124425	Sync.Status	DEBUG	Status.service: error.login.failed => error.login.failed
    1416114124425	Sync.SyncScheduler	DEBUG	Got backoff notification: 3600000ms
    1416114124425	Sync.SyncScheduler	DEBUG	Fuzzed minimum next sync: 1416117724425
    1416114124425	Sync.Service	WARN	Got status 503 fetching crypto keys.
    1416114124425	Sync.Service	WARN	Failed to fetch symmetric keys. Failing remote setup.
    1416114124425	Sync.Service	WARN	Remote setup failed.
    1416114124425	Sync.SyncScheduler	DEBUG	Clearing sync triggers and the global score.
    1416114124426	Sync.SyncScheduler	DEBUG	Next sync in 4079084.8112176084 ms.

    It might take a little longer, because it is currently weekend and most of the engineers of synchronization are stationed at the United States Coast West zone...

    Edit: you can follow along the progression of this this question to the bug #1100162

  • I am trying to download and install Itunes for Windows 10 - the download file is labeled itunes6464. When I try to install, I get an error message saying that I can't install this program on a PC?

    New HP laptop, Intel processor running Windows 10 (so I find it almost impossible to find something useful on the computer system - I'm NOT a fan of Windows 10).

    (I have a Mac and an iPhone at home, so am very familiar with iTunes)

    Downloaded iTunes for PC version 12.3.3 (which shows in my downloads as iTunes6464.exe)

    But when I try to install the package I get an error message saying "you cannot install this program on a PC. Contact the Publisher of the software. »

    No previous iTunes installs on this computer... I have on this machine - it's the only other Apple Quicktime software.

    I'll hop on the site of HP support too, but would like to help here, if they are available.

    Kath

    Specific advice Apple seem to be uninstall QuickTime, it should no longer be necessary and has a few potential security vulnerabilities. See Uninstall QuickTime 7 for Windows - Apple Support.

    Assuming that you have a 64 bit system, this facility expected to be compatible. For general advice, see troubleshooting problems with iTunes for Windows updates. More information area has direct links with the current and recent if you have problems to download, need to install an older version , or want to try the version of iTunes for Windows (64-bit - for older video cards) as a workaround for problems with installation or operation, or compatibility with third-party software. It can help with the right button on the downloaded Setup program and use the run as Administrator option.

    TT2

  • When I try to install Firefox, I get an error "could not open the output file. I used Firefox before and it doesn't work anymore, so I uninstalled. Cannot re - install now.

    When I try to install Firefox, I get an error "could not open the output file. I used Firefox before and it doesn't work anymore, so I uninstalled. Cannot re - install now.

    This has happened

    Each time Firefox opened

    I tried to download firefox.

    User Agent

    Mozilla/4.0 (compatible; INTERNET EXPLORER 6.0; Windows NT 5.1; SV1; AntivirXP08; GTB6.3; .NET CLR 2.0.50727; MS - RTC LM 8)

    When you click on the download link on GetFirefox.com, you should be asked if you want to run or save the file. If this situation occurs when you try to run the download, try instead to record and put the file on your desktop or in a similar place, where you are certain that you can find.

    When the download is complete, try double-clicking on the downloaded file in the normal Windows Explorer (browse your way to the file from the desktop). This should start the installation.

    If, in the Explorer window, you notice that the file seems to be missing the Firefox icon orange/blue, right click the file and select Properties. The image should look like the attached picture (except that mine is in Danish, but that is irrelevant) if saved correctly - if it don't look like this, would you please describe the content or attach a screenshot of the box. Especially what it says under "File Type" - it must be 'program '. If this isn't the case, will have to focus on what could be the problem here.

    A bit off-topic, your Internet Explorer seems to be quite a bit outdated (IE 6, where the current version is IE 8), so I highly recommend that you try to run Windows Update to get your system up to date. Is it as a society (such as a thin client Terminal Server computer) system, this is not possible, and most likely, your system administrator will have to help you.

  • Desktop HP Pavilion Elite 150ff: performed a cover of the factory, now I get the error HP photo creations DC18

    I did a factory recovery using Recovery Manager on my desktop of windows 7 Home premium, Pavilion Elite 150ff. After having installed all the updates and download flash player and Adobe Reader and install my Antivirus HP Photo creations program won't work, I get an error message saying DC18, and Microsoft claims it is incomatible, I have the icon on my desktop. Tried to download it from the HP website, but my anti virus detected a trojen, how can I get this program working again. All other programs work fine, my desktop is wired but my 7520e printer is wireless and connected properly. Also HP smart web printing does not work, using IE11.

    Hi Emma.

    Uninstall and reinstall HP Photo Creations should resolve the error. Here are the instructions step by step for Windows:

    1. check your Internet connection

    • If you have access to the Internet from a company or a network of offices, please make sure that the network or the firewall allows access to the HP Photo Creations software.
    • Check your computer clock to make sure the date and time are set correctly.

    2 uninstall and reinstall HP Photo Creations

    Step 1: Uninstall HP Photo Creations

    1. Click Start
    2. Click on Control Panel
    3. Click Add or remove programs
    4. In the list, select and delete HP Photo Creations

    Step 2: Download and reinstall HP Photo Creations

    1. Go to https://shop2.rocketlifeproduction.com/hpfe6fd34b208847e8f8254b9be96e8c4c/catalog.html?gta=download
    2. Click on the download button. Depending on your browser, you can choose to run or save the program. Choose run if they are available. (If you choose Save instead, double-click the file you downloaded).
    3. Follow the instructions on the screen to reinstall HP Photo Creations.

    Step 3: Open HP Photo Creations  

    Open HP Photo Creations by double-clicking the shortcut on the desktop, and then confirm that it works.

    I restart the computer after step 3 may help as well.

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    Our support team is always happy to help you. You can contact them at www.hp.com/go/supportform

    Thank you for using HP Photo Creations,

    RocketLife

Maybe you are looking for