Results 1 to 4 of 4
  1. #1
    tasos is offline Member
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Default Exception thrown when executed outside NetBeans environment

    Hello to everyone,

    I have a very peculiar -to me- problem. I have created an application that runs ok when inside NetBeans.

    However, when I run the distribution created after building the above application, a NullPointerException is thrown.

    I know I give too little information about the problem. I want some opinions about what the problem could be. Of course, I am willing to give a lot more.


    Thanks for your help.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Since we know almost nothing about the problem, all I can say is that something must be un initialized. Does it ever get thrown when running in net beans?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,240
    Rep Power
    19

    Default

    My guess: a resource that isn't being added to the jar.

    At least post a stack trace!

    db

  4. #4
    tasos is offline Member
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Default

    First of all, thanks for the answers.

    Now, as far as running inside NetBeans is concerned, the answer is no... the problem does not appear there. The program runs as expected inside NetBeans.

    For the StackTrace part... you are right, I should have sent it in the first place. I upload it now.

    Some info about the messages shown in the photo.

    The application tries to read an "XML" file that contains some Meals. I understand that no Meal is created so, that is why it cannot be added to the Menu.

    My question is why the meal is not created. I guess, the answer that a resource is not added to the "jar" is a good point to start.
    Attached Thumbnails Attached Thumbnails Exception thrown when executed outside NetBeans environment-null.jpg  

Similar Threads

  1. Replies: 5
    Last Post: 02-14-2011, 11:39 PM
  2. After catching the exception thrown
    By scoobyrox in forum New To Java
    Replies: 2
    Last Post: 09-05-2010, 02:29 PM
  3. Replies: 2
    Last Post: 06-01-2010, 02:58 AM
  4. Will finally get executed...
    By AlmostAGuru in forum New To Java
    Replies: 1
    Last Post: 08-10-2009, 07:12 PM
  5. Which exception is thrown.....
    By money123 in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •