Results 1 to 5 of 5
  1. #1
    javajosh is offline Member
    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0

    Default Naming requirements and conventions ?

    Hi all -- total noob here trying to get the simplest stuff to work---

    I can't seem to start a Java Project from scratch on my own - even a hello world - I have been successful importing a project though (also unsuccessful importing a project ! ) I suspect is has something to do with what I am naming stuff ? Any helpful guidelines ?

    On a mac using Eclipse...

    Thanks !!!

  2. #2
    skaterboy987 is offline Member
    Join Date
    Sep 2011
    Posts
    56
    Rep Power
    0

    Default Re: Naming requirements and conventions ?

    I'm not sure if the problem is your code is wrong or what? But since you have eclipse, do the following.
    1. On the top left, mouse over file
    2. Mouse over new
    3. Click 'Java Project'
    4. In the text field type 'HelloWorld'
    5. On the left you should see a folder icon next to Hello World
    6. Double Click "Hello World"
    7. Right click on src and mouse over new
    8. Select Class
    9.In the name field type 'HelloWorld'
    In the big box in the middle, copy and paste the following
    Java Code:
    public class HelloWorld {
    	public static void main(String[] args){
    		System.out.println("Hello World");
    	}
    }
    10. At the top of the program click the green button with the play symbol, to the right of the one that looks like a helicopter
    11. Watch your program work.

    This is eclipse in windows 7, I'm assuming they're the same.
    Last edited by skaterboy987; 10-30-2011 at 06:03 AM.

  3. #3
    javajosh is offline Member
    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0

    Thumbs up Re: Naming requirements and conventions ?

    That set me straight ! Thank you so much !!

    -Josh

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

    Default Re: Naming requirements and conventions ?

    Quote Originally Posted by skaterboy987 View Post
    10. At the top of the program click the green button with the play symbol, to the right of the one that looks like a helicopter
    Erm, not that it matters much, but it is supposed to look like a bug; that button opens the 'debug perspective' so you can debug your stuff.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    javajosh is offline Member
    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0

    Default Re: Naming requirements and conventions ?

    Thanks ! Much obliged...

Similar Threads

  1. code conventions using the PMD plugin
    By nagaraaju in forum Eclipse
    Replies: 1
    Last Post: 08-06-2010, 10:18 AM
  2. question about coding conventions
    By gib65 in forum New To Java
    Replies: 8
    Last Post: 08-05-2010, 05:24 AM
  3. Naming conventions
    By tim in forum Forum Lobby
    Replies: 10
    Last Post: 11-16-2008, 10:27 PM
  4. Naming conventions
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-03-2007, 10:53 AM
  5. namespace conventions from sun....
    By money123 in forum New To Java
    Replies: 3
    Last Post: 07-31-2007, 06:44 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
  •