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

    Default Help getting started.

    Hey there I'm totally new to the world of Java and I was reading that I need a Java Software Development Kit and an Integrated Development Environment. I found the IDE Eclipse and it seems to be widely used but I can't find a SDK for a Mac. I read that there was one built in to Snow Leopard but I don't see where to find it. Can anyone help a total noob out please? Thanks

    ~Tim

  2. #2
    DiamondSoul is offline Member
    Join Date
    Oct 2011
    Posts
    83
    Rep Power
    0

    Default Re: Help getting started.

    As far as I know, the IDE is all you really need, and there are various SDKs which provide extended functionality, but aren't really necessary. Have you tried making a simple "Hello world" program in Eclipse to see if it works?

    edit: btw, are you new to programming in general, or is it that you've programmed in other languages but are just new to Java?

  3. #3
    timiscute is offline Member
    Join Date
    Oct 2011
    Posts
    5
    Rep Power
    0

    Default Re: Help getting started.

    basically totally new to programming.

  4. #4
    DiamondSoul is offline Member
    Join Date
    Oct 2011
    Posts
    83
    Rep Power
    0

    Default Re: Help getting started.

    Alright, try this. Open Eclipse and create a new Java project. Once you've created the project it should appear in a toolbar on the left side of the window (I believe it's called the "package explorer" if I remember correctly). There should be a folder labeled with whatever name you gave your project. Open it by clicking the little plus sign next to it. You should now see something that says "default package". Right click on this, and, under the "new" menu, select "class". In the window that appears, name your class "Main". Now, in the main part of your Eclipse window, your code should appear, and somewhere in the code you should see the following:

    Java Code:
    public class Main{
    }
    Insert code in between these two lines, so that it looks like this:
    Java Code:
    public class Main{
        public static void main(String[] args){
            System.out.println("Hello, world!");
        }
    }
    Now run your program by clicking the play button at the top of the Eclipse window.

    Assuming I've remembered how Eclipse works correctly (I don't actually have it on the computer I'm typing this on), following the above steps should constitute writing and running your first Java program.

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

    Default Re: Help getting started.

    I tried that and got an error. It says:
    Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    The method printIn(String) is undefined for the type PrintStream

    at Main.main(Main.java:3)

  6. #6
    AmFreak is offline Member
    Join Date
    Jul 2011
    Posts
    34
    Rep Power
    0

    Default Re: Help getting started.

    You probably have figured this out already but
    printLn (the L in lower case) not printIn
    Eclipse should have made a red line under the wrong part move over this with your mouse and choose "change to println".

  7. #7
    timiscute is offline Member
    Join Date
    Oct 2011
    Posts
    5
    Rep Power
    0

    Default Re: Help getting started.

    Thanks got it. I got a book called Java Programming 5th edition by Joyce Farrell. It seems like a pretty good book to me and I want to basically work my way through it. Can anyone tell me if this is a good book to start with or can you recommend another that I should check out? Any websites where I can find info etc? Thanks so much

  8. #8
    GA5MA5KOP's Avatar
    GA5MA5KOP is offline Member
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0

    Default Re: Help getting started.

    I recommend the Blue Pelican Java book. It is free, just google it and it should be the first link.
    Last edited by GA5MA5KOP; 11-01-2011 at 06:01 PM.

Similar Threads

  1. Getting Started
    By SuperPokeunicorn in forum New To Java
    Replies: 3
    Last Post: 09-10-2011, 07:39 AM
  2. Need help getting started on a lab!
    By abatakji74 in forum New To Java
    Replies: 3
    Last Post: 01-30-2011, 02:30 AM
  3. Getting Started Help (:
    By Jcbconway in forum AWT / Swing
    Replies: 3
    Last Post: 10-10-2010, 08:52 AM
  4. Help me get started
    By shanky in forum Java Servlet
    Replies: 2
    Last Post: 05-02-2010, 04:37 PM
  5. I need help getting started
    By Android in forum New To Java
    Replies: 2
    Last Post: 10-30-2007, 05:46 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
  •