NullException when I launch the midlet

I can run the program in the WTK IDE using "Run" button. After that, I use "*project--->package---->create package*" to create a jar and jad file for my project. Then I goto the bin diretory and open the jad file, emulator opened it successfully and the phone window showed. Nevertheless, when I click the "launch" command to launch the app, it prompted me *"+AppName, AppName+*
*+Exception:java.lang.NullPointerException+*".
It seems the emulator didn't find the app's midp class which is the entry point and derives from Midlet. It's very strange, because when I used "jar -xf AppName.jar" to extract the jar file, the AppName.class is right there. What's wrong? Is there any limitation for the classes in the .jar file?
In addition, I didn't touch the .jad/.jar file at all, they were created by WTK.
Any comments are welcome and many thanks!

Do you mean I need add a package?No, I don't mean you need to add a package statement :-) but the only ways I could reproduce your problem were
-- by omitting a package statement and placing the .java file in a subfolder of src.
-- by including a package statement and placing the .java file in the src folder.
Now I add a package name test in the source filesIf by that you mean the first line of your source files ispackage test;then the files have to be in the folder src\test (*nix src/test). Did you take care of that?
and I modified the jad fileDon't modify the jad file, just Project->Package->Create Package again.
If you still have problems, post back.
db

Similar Messages

  • My ipod nano isn't syncing when I try and change the setting in manually, but is however syncing when I launch the itunes by plugging it in. I'm wondering if anyone has had this issue and/or had been able to fix the problem?

    My ipod nano isn't syncing when I try and change the setting in manually, but is however syncing when I launch the itunes by plugging it in. I'm wondering if anyone has had this issue and/or had been able to fix the problem?

    Do you have any better luck with that if you update to iTunes 10.6.1.7?
    From the notes for the release:
    iTunes 10.6.1 provides a number of improvements, including:
    • Fixes several issues that may cause iTunes to unexpectedly quit while playing videos, changing artwork size in Grid view and syncing photos to devices.
    • Addresses an issue where some iTunes interface elements are incorrectly described by VoiceOver and WindowEyes.
    • Fixes a problem where iTunes may become unresponsive while syncing iPod nano or iPod shuffle.
    • Resolves an ordering problem while browsing TV episodes in your iTunes library on Apple TV.
    http://www.apple.com/itunes/download/

  • Hi, I have just loaded Lightroom 5 from the disc onto my Mac.  every time i try and launch the application, it goes to the registration/licence window.  i have input the data five times already.  When Lr5 launches the update window appears, when i try to

    Hi, I have just loaded Lightroom 5 from the disc onto my Mac.  every time i try and launch the application, it goes to the registration/licence window.  i have input the data five times already.  When Lr5 launches the update window appears, when i try to do anything the following message comes up: - An error occrred when attempting to change modules.  What do i need to do to fix this?

    Masher please use the uninstaller located in the Applications/Utilities/Adobe Installers folder.  Once Photoshop Lightroom is removed then please download Lightroom 5.5 from Adobe - Lightroom : For Macintosh : Adobe Photoshop Lightroom 5.5 and reinstall.

  • I just installed Readdledocs on my ipod, and now when I launch the app, I get a screen which says "downloading message" and the app freezes and won't do anything else.  How can I get the app to function again?

    I just installed Readdledocs on my ipod, and now when I launch the app, I get a screen which says "downloading message" and the app freezes and won't do anything else.  How can I get the app to function again?
    This happened after I tried to get Readdledocs to open an epub file which I created in Calibre.

    This is a followup to my own posting above.
    Thanks to Dave Sawyer for posting information about re-downloading an app which has been deleted.  I deleted the app from iTunes.  Then, when I synched, iTunes asked me if I wanted the items on my ipod touch copied back into iTunes.  I said yes and then synched.
    Readdledocs is now working again.  It is no longer frozen.  However, I have learned my lesson.  I will download only pdf's from now on.  I don't think it works so well with epub files.  The text reflow feature of Readdledocs is exactly what I need to use for my work documents on my ipod touch.

  • When I launch the app store, I get "minecraft." It will not allow me to return to the "featured" menu. I've tried rebooting / killing the app, but nothing has worked. Any insight?

    When I launch the app store, I get "minecraft." It will not allow me to return to the "featured" menu. I've tried rebooting / killing the app, but nothing has worked. Any insight?

    I have also tried the fixes offered in this forum such as using the "Other" mail in setting up the gmail accounts, and not using the dedicated gmail setting.  I also went to google and signed in and enable the additional devices.  I had the same problems with the original account I set up for gmail, but it corrected when i went to using the "Other" instead of the Gmail button.  I was able to set up the new gmail accounts on my iphone without problem and on my husband's ipad1 for his gmail account.  Just the ipad 2 is giving me problems.   Again, thanks for any suggestions.

  • Acrobat keeps crashing when I launch the app takes 3 tries to get it to open

    acrobat keeps crashing when I launch the app takes at least 3 tries to get it to open

    Try performing these steps:
    Windows:
    1: Update the product, repair the product from the control panel.
    2: Move the cache.db file from the location C>Program files or Program files(x86)>Common files>Adobe>Adobe PCD>Cache and mvoe the cache.db file on to your desktop.
    3: Close and reopen the applciation, you will get a prompt to enter the serial key, enter it and check if Acrobat is still crasing or not.
    4: If the isue still persists then you need to check for the error message in the event viewer ie Start> and type Eventviewer and check the error message under Windows Logs>Applcition>erro which indicated Acrobat.
    5: Rename the OOBE folder from the location C>Program files or Program files(x86)>Common files>Adobe>OOBE to OOBE.old and download and install the Adobe applciation manager from the Adobe website and it will work.
    Macintosh:
    1: Update the product to the latest version.
    2: Move the cache.db file from the location Macintosh HD>Library>Applciation support>Adobe >Adobe PCD>Cache and move the cache.db file on to your desktop.
    3: Close and reopen the applciation, you will get a prompt to enter the serial key, enter it and check if Acrobat is still crasing or not.
    4:Rename the OOBE folder from the location Macintosh HD>Library>Applciation support>Adobe >OOBE and rename it to OOBE.old download and install the Adobe applciation manager from the Adobe website and it will work.
    Post on this if you are still facing the same issue.
    (Apple made the user library folder hidden by default with the 10.7 release you can access the hidden or the root library by  navigating Finder, choose Go > Go To Folder
    In the Go To Folder dialog, type ~/Library and click Go.
    If you have queries regarding Creative Cloud installation and setup, you  can contact support using the below link.
    http://helpx.adobe.com/contact/
    1) Choose 'Creative Cloud' from the field 'Select Your Adobe Product'
    2) Choose the option " Download, installing and setting up" from drop down menu for the option ' Tell us what you need help with?'

  • I have 3.3.2 installed. Have downloaded the 3.4.3 update, but when I launch the update it tells me I need 3 installed, and quits

    I have 3.3.2 installed. Have downloaded the 3.4.3 update, but when I launch the update it tells me I need 3 installed, and quits
    Already tried deleting some prefs in the library folder but still not good.

    Aperture needs to be installed in the Aplication folder and named Aperture for the update to see it.

  • When I open (launch) ps6, two old images always open.  always the same 2 images, and always when I launch the program. what is going on?

    when I open (launch) ps6, two old images always open.  always the same 2 images, and always when I launch the program. what is going on?

    Check your userid autorecovery folder after you close Photoshop. If there are psb files in it delete them

  • I purchased elements 12 last year. When I launch the program it tells me my trial subscription ended. I had purchased the product and put the serial number in? Thoughts

    I purchased elements 12 last year. When I launch the program it tells me my trial subscription ended. I had purchased the product and put the serial number in? Thoughts

    Moving the discussion to Photoshop Elements.
    Thanks,
    Atul Saini

  • When i launch the apple store i see "cannot connect to app store"

    When i launch the apple store i see "cannot connect to app store" Somebody can help me with this?

    Sign out of App Store and sign in again
    Settings>iTunes & App Store>Apple ID>Sign out

  • When I launch the apps store, the google maps download page shows and I am unable to proceed to the store in spite of having already downloaded google maps. Any clues on rectifying this please?

    When I launch the apps store on my iPad air I can see the store in the background but in the foreground is the google maps download page. I have downloaded google maps but the information page seems to be over riding the apps store. Any clues on rectifying this please?

    Hi Sallythyme,
    Thanks for using Apple Support Communities.  Forcing the App Store to close and restarting/resetting your iPhone may help remedy this:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    Cheers,
    - Ari

  • My phone is locked by carrier Vodafone UK. when I launch the itunes the lock will be release ?

    my phone is locked by carrier Vodafone UK. when I launch the itunes the lock will be release ?

    You will have to contact Vodafone UK, only they can potentially unlock the phone for you

  • I recently updated my iTunes to version 10.3.1.55 and when i launch the program it says 'iTunes has stopped working' then another window pop up saying me to close program.HELP!!! ME PLEASE!!

    ok i installed new iTunes version 10.3.1.55 and when i launch itunes it says 'iTunes has stopped working' i get to my problem history this is whay i found
    Problem signature
    Problem Event Name:          APPCRASH
    Application Name:          iTunes.exe
    Application Version:          10.3.1.55
    Application Timestamp:          4deec351
    Fault Module Name:          MediaToolbox.dll
    Fault Module Version:          1.0.694.7
    Fault Module Timestamp:          4ddeb575
    Exception Code:          c0000005
    Exception Offset:          00250000
    OS Version:          6.0.6002.2.2.0.768.3
    Locale ID:          1033
    Additional Information 1:          fd00
    Additional Information 2:          ea6f5fe8924aaa756324d57f87834160
    Additional Information 3:          fd00
    Additional Information 4:          ea6f5fe8924aaa756324d57f87834160
    PLEASE HELP ME!!!!

    Fault Module Name:          MediaToolbox.dll
    Fault Module Version:          1.0.694.7
    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair".
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post:
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever since I did that my itunes won't open any more.  Itunes starts but before anything loads a window pops up saying that the prograam has encountered a problem and sh...

  • Installation.  I am trying to install / use Acrobat XI Pro. After installation when I launch the application, it keeps crashing. PS.  I had Acrobat 8 Professional previously.

    PS. I am on Mac OS 10.9.3

    Hi sethup,
    Have you uninstalled Acrobat 8 before installing Acrobat 11?
    Did the installation for Acrobat 11 go without any errors?
    If yes then it might be an issue with the licensing. We might have to check the amt3.log file.
    Do you face the same issue when you try to launch the application in the root user account as well.
    Refer : Enabling and using the "root" user in Mac OS X
    Regards,
    Rave

  • Error when I launch the template installer

    Hi All,
    When I try to launch the template installer after going into http://localhost:50100/index.html->SAP NetWeaver Adiminstrator -> Deploy & Change -> Template Installer I get the error as enclosed below.
    java.lang.NullPointerException
         at com.sap.tc.lm.ctc.ccl.templateinstaller.ScenarioTemplateView.wdDoModifyView(ScenarioTemplateView.java:226)
         at com.sap.tc.lm.ctc.ccl.templateinstaller.wdp.InternalScenarioTemplateView.wdDoModifyView(InternalScenarioTemplateView.java:492)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
         at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:282)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:468)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:475)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:533)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:415)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:101)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:650)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.processRequest(ClientManager.java:155)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:105)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:63)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:50)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    It will be great if anyone of you tell me how to solve this error.
    Thanks for all your help in advance.
    Best regards,
    Divya

    I believe 623 had a bad reference to the ChilKat dll that may have caused this.
    Make sure you have the latest release v626.

Maybe you are looking for

  • Calling Dynpro components in Webdynpro ABAP.

    Hi friends, Could anyone tell me how to call webdynpro components in DC's in Webdynpro ABAP. Regards Sireesha.

  • Web pages don't render properly no matter which Web browser I'm using

    I've run across a very curious issue - Web pages do not render correctly in either Internet Explorer (version 8, 9, 10, 11 - I've tried them all) or Firefox (latest version). If I visit a Web page that contains a commenting system (Disqus, Facebook,

  • IWeb Site seems to have been overwritten.

    Had to reload my OS and lost iWeb content. I reloaded iWeb and unintentionally published a Blank Page Template. I went to iDisc and found my page links ie: (URLhttp://web.mac.com/fritzrobert/RobertFritz_Design/home_.html) When I click on them I get t

  • Getting "Transfer Upgrade" To Stick?

    Hi, There are currently three phone's on my family's Family Plan. My Mom's, an LG Octane, My Brother's, an EnV3, and mine, a Droid X. Currently, my brother is eligible for an upgrade, but he has decided that I may use the upgrade to get the iPhone 4S

  • PDF Conversions completely mangled

    I am about to pull my hair out.  I created labels in Online labels.com.  They are .pdf files.  Before I was forced to download Windows 8, I had no trouble printing the .pdf files.  Once I downloaded Windows 8, I could no longer print .pdf files, so I