Results 1 to 3 of 3
  1. #1
    JavaNovice24 is offline Member
    Join Date
    Nov 2015
    Posts
    9
    Rep Power
    0

    Default Error Message when running program - Help!

    Hey everyone. I am brand spankin new to Java and need to run a few codes for class. I can't do this successfully without the beautiful error message: Exception in thread "main" java.lang.Error: Unresolved compilation problem:

    How can I solve this?! Any and all help is appreciated. This is killing me!
    Attached Thumbnails Attached Thumbnails Error Message when running program - Help!-screen-shot-2015-11-18-9.27.52-pm.png  

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    27

    Default Re: Error Message when running program - Help!

    All those red bits are errors.
    You can't run the code while there are errors in it.

    If you hover your mouse over them they should tell you exactly what the issue is.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,422
    Blog Entries
    7
    Rep Power
    28

    Default Re: Error Message when running program - Help!

    What is the right curly bracked doing at the end of line 'subPanel2.add(label2);}'? It marks the end of the main( ... ) method and make 'primary' a class (instance) variable and the rest is just gibberish according to the compiler. You should never ignaore compiler error messages or you'll be stabbed in the back during runtime.

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Replies: 1
    Last Post: 05-12-2012, 08:35 PM
  2. Error running java program using URL
    By gio123bg in forum New To Java
    Replies: 6
    Last Post: 06-30-2009, 06:26 PM
  3. error running java program
    By bdasilva in forum New To Java
    Replies: 1
    Last Post: 06-29-2009, 01:46 AM
  4. Replies: 6
    Last Post: 02-24-2009, 02:50 PM
  5. Replies: 7
    Last Post: 08-12-2007, 03:47 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
  •