Trouble porting a game from J2SE to MIDP

Hello, I'm a J2SE programmer trying to learn how to code for MIDP 1.0 and 2.0 phones. I've gone through some examples and tutorials to learn how to create a basic game, and I've taken a simple one that I've written and modified it so that I believe it should work for MIDP 2.0. However, when I try to run it in my emulator, it bails immediately with the following error:
java.lang.Error: Static initializer: java/lang/IllegalArgumentException: Unsupported size
     at com.sun.midp.midlet.MIDletState.createMIDlet(+60)
     at com.sun.midp.midlet.Scheduler.schedule(+52)
     at com.sun.midp.main.Main.runLocalClass(+28)
     at com.sun.midp.main.Main.main(+116)
I haven't been able to find out from anywhere what this error means or what I can do to fix it. Any help would be greatly appreciated, thank you!

turns out, I was passing a number for a font size somewhere, where I should have had one of the small/medium/large type parameters. Silly misleading errors

Similar Messages

  • I am having trouble downloading a giants/49ners playoff game from NFL TV network what should i do?

    i am having trouble downloading a giants/49ners playoff game from NFL TV network what should i do?

    I agree. I don't rely on iCloud as a backup, that is what I have my portable hard drive for. Its 500 GB so I can hold my entire iTunes library several times over on it. I have all my movies on my hard drive, but somehow "The Mist" got deleted off of my hard drive, so I figured "Well, the option to redownload an already purchased movie is available through iCloud, I'll just do that!"
    And permissions and download availability have nothing to do with it, the movie's still there, it still allows me to redownload it. The only problem is when I click download, I get that message.
    And nobody else uses my computer, but I do have multiple accounts authorized on it. Even still though, I am attepmpting to download it through the account I purchased it under. :/

  • How do i sync games from my computer to my ipod any one help please having a lot of trouble

    how do i sync free games from itunes apps to my daughters ipod touch been trying for ages i have got to the games app store selected the free games she wants ticked the boxes and tryed to sync just not happening please help ...

    - Are you following the instructions here:
    iTunes: Syncing media content to iOS devices and iPod
    - Are restrictions set that prevent syncing? Go to Settings>General>Restrictions and check.
    - Is this the computer she syncs with? AN iPod can ony sync to one iTunes library (but can manage music and videos among different libraries/computers).

  • Ive just got a new iPhone4 and I am trying to get the App's ie games from my iPhone3 onto the 4 and retain the same levels that I have reached on the 3, The Apps have gone onto the 4 but its making me re-start everything from level 1?

    Ive just got a new iPhone4 and I am trying to get the App's ie games from my iPhone3 onto the 4 and retain the same levels that I have reached on the 3,
    The Apps have gone onto the 4 but its making me re-start everything from level 1?
    Ive paid $$ for the games and then more $$ within the games via iTunes for in game purchases and desperatly want the games on the 4 with the levels that I have reached on the 3!
    Can anyone help!! Please!!!! My Smurfs and Animals are starving Hahahaha

    Mate, it's good to hear that you have gotten the iPhone 4 but sorry to burst your bubbles. Not all games can have the "saved" data ported over.
    Normally when you save a game in iPhone, the memory used is in the flash memory of the device. Those that can be ported over, reason is due to the data being saved over the air and when you logged in on a new device, it recognises you via the userID.
    Maybe you can try to backup your iPhone 3, and restore the file onto your iPhone 4. Not too sure if that would brick your phone though.

  • I have a IPad Air and when I download a game from Big Fish games I can not open the game to play . I have tried everything- reboot , delete, start over . Is anyone else having this same problem?

    I have a IPad Air and when I download any game from Big Fish the game will not open to play . I have tried everything to get the games to work - reboot, delete, restart my IPad everything. I can download games from other places like G5 games play fine. I have connected Big Fish and they told me that they tried the games I was having trouble with on a iPad air and the games play fine - don't get it . Can anyone HELP

    Hi, joannfrommontgomery. 
    Thank you for the question.  I would recommend going through the steps in the article below.  If the issue persists and your devices OS is up to date, I would recommend contacting the developer of the app.
    iOS: Troubleshooting apps purchased from the App Store
    http://support.apple.com/kb/ts1702
    Cheers,
    Jason H.

  • HT4236 I HAVE 2 HARD DRIVES ON MY LAPTOP. MY PHOTOS ARE ON 1 HARD DRIVE & MY ITUNES IS ON ANOTHER HARD DRIVE. I AM HAVING TROUBLE SYNCING THE PHOTOS FROM THE SEPERATE HARD DRIVE ONTO MY IPOD TOUCH. ANY HELP?

    I HAVE 2 HARD DRIVES ON MY LAPTOP. MY PHOTOS ARE ON 1 HARD DRIVE & MY ITUNES IS ON ANOTHER HARD DRIVE. I AM HAVING TROUBLE SYNCING THE PHOTOS FROM THE SEPERATE HARD DRIVE ONTO MY IPOD TOUCH. ANY HELP?

    There is a whole lot of bad going on there.
    There are problems both drive errors and USB errors.  I don't believe it.
    I have a hunch the drive is starving for power. 
    USB devices are supposed to function all the way down to 4.25V.  Not all do.
    USB ports are supposed to be able to deliver 4.25V at the end of the cable at 500mA.  Not all do.
    USB 2.0 devices are not supposed to draw more than 100mA unless they negotiate for more.  Some violate that.
    USB 2.0 devices are never supposed to draw more than 500mA. Some violate that.  Especially disk drives.
    My guess is that your drive is drawing excess current and the voltage drop through the port and cable are dropping you below 4.25; or at least below the voltage that your drive goes "Tango Uniform"[1].   Does your drive have the option for external power?  If so try it.  Following up on wtx's comment;  USB 3.0 is capable of delivering more power.   Also, some drives have used a cable that violates just about every aspect of the USB specification:  A "Y" cable that plugs into two host ports to provide more power to the guest.  I despise this solution with every fiber of my electrical engineering existence; never-the-less, you might try one.
    edit:  [1] Teats Up.
    Last edited by ewaller (2015-04-04 17:02:04)

  • I have downloaded game from big fish games but it won't run, i'm using mountain lion any help would be great thank's , aiden .

    I have downloaded a game from big fish games but it won't run any tip's please / THANKS .

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Can i edit my game center account to stop sharing friends and games from another apple id that associated with my own new apple id.how to reset it without losing my apple id and i can stiil use it?

    Can i edit my game center account to stop sharing friends and games from another apple id that associated with my own new apple id.how to reset it without losing my apple id and i can stiil use it? Because i've made lot of paid purchases using this apple id. In my game center account i have so many games data that i'd never installed.i wanna  stop sharing  friends and games with this xxx apple id in my old ipad version ios 4.2. and i can still keep using this apple id in my new ipad 3rd gen version ios 6 without sharing game and friends with this xxx apple id? and how to remove the games data that i never downloaded in my ipad but still registered at my game center account.i wanna keep using this apple id coz so many fav application i've purchased from this id. the answer as soon as possible if there is some one can help me to solve it.thank u for reading my question and very big thanks for anyone who  can give me a helpful answer.                 

    Why do you ask in the iWeb forum?

  • I download two free games from itunes, it is not showing up on my iphone. Help

    I downloaded two free games from itunes, it is not showing up on my iphone as an icon.  I see it when i have my phone linked to the computer,

    I think I may have confused you and I apologize. But you are also confusing me now.
    If you were not using restrictions before, then that is why the Allowed Content for Movies in in accessible. You can only access that if you had set a restrictions Passcode. If you do not have restrictions set, then it is a non issue and don't worry about that suggestion.
    Were you actively using restrictions on the iPad? If you weren't then you don't have to enable it now. That will not do any good.

  • How I can delete games from ipod touch 5.1.0

    how I can delete games from ipod touch 5.1.0

    Touch the app and hold your finger down until all the apps start to jiggle. You will see a circled "x" in the upper left corner. Tap it to delete an app. When done press the Home button.

  • I am new to Mac and am having trouble with uploading images from my pictures folder to Facebook and other share sites- some of my images are accessible while others are seemingly locked....

    I am new to Mac and am having trouble up loafing images from my pictures folder to photography sites and Facebook. Some of the saved images are accessible, while others are not, ( they are light colored and cannot be uploaded) I am not saving them any differently.

    Hi Robodisko,
    Thanks for your prompt reply...... 
    I often proof my work in preview then edit images in photoshop and rename from there.  The dsc images are renamed to correlate the name of the class etc.  i.e. dcs_001 is saved as the file name required 7A.jpeg etc.
    The file names are required to correlate what is what and so on..........

  • Why when i try to sync apps asnd games from itunes it says failed error, why when i try to sync apps asnd games from itunes it says failed error, why when i try to sync apps asnd games from itunes it says failed error

    why cannt i get my apps and games from itunes to my iphone it says error

    Not enough information for anyone to offer assistance.

  • How can we transfer games from ipod 4 to a different ipod 4

    how can we transfer games from ipod 4 to a different ipod 4??

    Follow the instructions here or here; using the first set of instructions then requires syncing the second device with the iTunes library containing the content. If you want to transfer the game data as well, perform a backup and restore.
    (91068)

  • How can u transfer games from one iPad to another on

    I have an older iPad and would like to transfer some games from this one to the new ipad4, is there a way to do this

    Hi Greenpete,
    You will need to use the same Apple ID on both devices, hopefully your old iPad runs iOS 5 which will give you access to iCloud.  I'd suggest backing up to iCloud - you'll need wifi to do this, and then when setting up your new iPad, select the option to Restore from iCloud and you should be on your way.
    Hope this helps,
    Steve

  • How to transfer the progress of just one game from one iPad to another iPad

    Hi everyone!  When I purchased an iPad Air, I gave my old iPad 3 to a family member who kept one of my games and its progress, but changed every other App to suit his requirements.  My iPad Air has all MY Apps, which are different to the ones on the iPad 3.  Both iPads use my Apple account.
    I want to somehow transfer the progress of just the one game from the iPad 3 to the iPad Air and I don't want to back up my iPad Air to be the same as his iPad 3, which I know will transfer the progress of the game, but it will also mean I will  get a load of Apps I don't want and more importantly, lose all my Apps and the progress in all my games.
    i.e. can I transfer one game and its progress from one iPad to another without altering/deleting/removing existing Apps on either iPad. 
    Phew ... hope the above makes some sort of sense to someone!!!
    Thank you

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    http://support.apple.com/kb/HT2109
    Moving Content to a New iPad
    http://tinyurl.com/qzk2a26
    How to Transfer App Data and Game Saves from One iOS Device to Another
    http://lifehacker.com/5891964/can-i-transfer-app-data-and-game-saves-from-my-iph one-to-a-new-ipad
    How to transfer data from your old iPad to your new iPad
    http://www.imore.com/how-transfer-data-your-old-ipad-your-new-ipad-air-or-retina -ipad-mini
    Transferring your prepaid cellular data account depends on your carrier. AT&T lets you move it yourself when you go to Cellular Data in Settings and log into your account with your previous AT&T user name and password. For iPads with Sprint service, you can set up an account on the new iPad and contact Sprint Customer Care (888-211-4727 and go through the menus) to deactivate the old plan and get credit for unused service. For Verizon, call the company’s customer service number for mobile broadband support (800-786-8419) and ask to have your account transferred.
     Cheers, Tom

Maybe you are looking for

  • My account is BLOCKED!  I can get into itunes now but it won't let me download APPS!  Help!?

    I changed my user name and password for all my emails, itunes, etc. b/c someone got into my accounts.  I'm able to log in to my itunes account BUT when I go to download an app it won't let me log in with my new password??? Why am I able to get into m

  • Capturing the output of a os command line

    I need to capture the output of a os command line executed from one java program and I don't know how can do it. For example: Runtime.getRuntime().exec("hostid");

  • What's The Deal With Ram?

    I just got my MBP with 4g's of RAM after working with a PB 512 RAM. So here's the deal. I still get the spining wheel often when opening and closing programs; render and export time is similar in FCP and iMovie; and here's the clincher-when I check A

  • Where can I find adobe 9 standard

    Where can I find Adobe 9 standard to download?

  • Error while installing oracle patch set 10.2.0.4

    Hi Gurus, I am installed oracle 10G successfully but while installing oracle patch set 10.2.0.4. it is given the following error. OUI.exe has encountered a problem and needs to close. We are sorry for the convenience. i am installing ECC6.0 on window