Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: Completely New to Java

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Location
    Jamaica
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Completely New to Java

    I have some experience with C++ and a little C with Win32 but no Java (0, NONE, ZIP).

    I've heard quite a lot about Java and I thought I'd give it a try but there's one BIG problem...

    I cant even imagine how to use a Java compiler/interpreter or whatever is used to make .exe files...

    I need all the help I can get to start programming in Java so please tell me what I need to do first

    and the steps involved... recommendations, anything that will help me start Java programming...


  2. #2
    Member Fendaril's Avatar
    Join Date
    Nov 2008
    Posts
    54
    Thanks
    7
    Thanked 6 Times in 5 Posts

    Default Re: Completely New to Java

    Java runs off of a vm so what it compiles to its java byte code. This byte code is then read by a non-native program and turned into a file only read by java. AKA a .jar file. If you want to make exe files then java really isn't for you. You should do .NET then since .NET makes a special kind of exe that is managed.

  3. #3
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Completely New to Java

    Java's syntax is based off of C/C++'s, so it shouldn't be too hard for you to pick up.

    The best way to write Java is with an IDE (Eclipse and NetBeans are the two best ones, depending on what you intend to do), and you can export Java programs as .jar files. Basically, these are similar to .exe files except the are platform independent (.exe is a Windows thing, so won't work on macs or linux).

    Personally, I like Eclipse over Netbeans because it runs much smoother and has many useful easy to use features, however NetBeans has a powerful GUI designer, which plain Eclipse doesn't have (there are plugins that allow you to design GUI's in Eclipse, though).

    Here's the link for eclipse's website:
    Eclipse
    Pick any download of Eclipse that allows you to develop Java, and/or JavaEE.

    You'll also need the Java JDK in addition to the JRE to run either IDE. Go for this one: Java Standard Edition. There are many different versions of Java (ME for mobiles, EE for server/business solutions), but SE should fit almost all general uses. Note: If you want to do JavaEE development, you'll need the JavaEE JDK

    Here are some tutorials from Sun (the "developer" of Java):

    Getting started
    Learning the Java Language
    Trail: Essential Classes


    Also, no Java developer could do without the API docs:

    Java API Docs
    Last edited by helloworld922; September 3rd, 2009 at 12:18 AM.

  4. #4
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: Completely New to Java

    Don't worry about the switch it will be easy. I did it myself, although I still know C and C++. One thing you will notice is that Java IDEs have auto complete and inteligence that guess what you are after and show a list of options. Also Java is so well documented you can find everything easily. Where as C and C++ this can be a pain in the arse. lets be honest if developing using Win32, Microsofts information is pretty sucky!

    Best of luck,
    Chris

  5. #5
    Junior Member
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Completely New to Java

    I'm in a similar position - some experience with C# and Flash, but new to Java.

    I found this video useful for getting the JDK up and running.

    (Same guy has also done a number of other vids which helped me get my head around basic syntax.)

    Good Luck.
    Last edited by Freaky Chris; September 3rd, 2009 at 03:20 AM. Reason: Fix Hyperlink

  6. #6
    Java kindergarten chronoz13's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    659
    Thanks
    177
    Thanked 30 Times in 28 Posts

    Default Re: Completely New to Java

    guys what should i download to get that API? jdk sourcecode? or jdk documentation? i just want to save those files
    just in case if i dont have internet connection i can still read that API...

  7. #7
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Completely New to Java

    try this:API download

  8. The Following User Says Thank You to helloworld922 For This Useful Post:

    chronoz13 (September 6th, 2009)

  9. #8
    Junior Member
    Join Date
    Sep 2009
    Location
    Jamaica
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Completely New to Java

    thanx... I'll try ur suggestions...