Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2014
    Posts
    3
    Rep Power
    0

    Exclamation java class problem

    hey guys i am brand new to this, i am reading a book "sams teach yourself java" covers 7 and android. on the first tutorial make first class Volcano robot done that is fine but then make a new file VolcanoApplication typed in the code and i have a red ! and a light bulb next to it i click it and click one of the hints/options but sends the code wappy and will not compile normally, i no its a beginners mistake but could someone please help.

    many thanks

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

    Default Re: java class problem

    Quote Originally Posted by darkwarlock2705 View Post
    hey guys i am brand new to this, i am reading a book "sams teach yourself java" covers 7 and android. on the first tutorial make first class Volcano robot done that is fine but then make a new file VolcanoApplication typed in the code and i have a red ! and a light bulb next to it i click it and click one of the hints/options but sends the code wappy and will not compile normally, i no its a beginners mistake but could someone please help.

    many thanks
    Use a few more full stops and capital letters to avoid run-on sentences like this; the compiler should also give a complete error message; what is it and what does the code that caused that message look like?

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

  3. #3
    Join Date
    Jun 2014
    Posts
    3
    Rep Power
    0

    Default Re: java class problem

    java class problem-java.png This is a picture of what i mean. i'm using NetBeans. i can give more pictures if u need them. thank you

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

    Default Re: java class problem

    Quote Originally Posted by darkwarlock2705 View Post
    This is a picture of what i mean. i'm using NetBeans. i can give more pictures if u need them. thank you
    Silly NetBeans ... you've put that class in the java21 package but I don't see a package statement at the start of your source (i.e. add a line 'package java21;' at the start of your source code).

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

  5. #5
    Join Date
    Jun 2014
    Posts
    3
    Rep Power
    0

    Default Re: java class problem

    that easy of a fix?? XD sorry had to laugh at myself lol. thank you for your help mate.

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

    Default Re: java class problem

    Yep, it's that easy; you should check how NetBeans can display a complete error message; it gives you all the information you need ..

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. Problem with Coding Java Class
    By Bentino in forum New To Java
    Replies: 8
    Last Post: 02-15-2012, 02:09 AM
  2. Problem with my Java class path
    By Slyfer in forum New To Java
    Replies: 1
    Last Post: 11-16-2011, 05:34 PM
  3. Java Class Inheritance Problem
    By Batman in forum New To Java
    Replies: 2
    Last Post: 09-12-2011, 12:01 AM
  4. Java class problem
    By maz22 in forum New To Java
    Replies: 2
    Last Post: 10-21-2010, 03:36 PM
  5. Im new to java. how do i fix the problem with class
    By lexlukkia in forum New To Java
    Replies: 2
    Last Post: 11-18-2007, 05:47 AM

Posting Permissions

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