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 2 of 2

Thread: Need help understanding Java

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help understanding Java

    Plz help me (WARNING I am pretty much lost here)! I want to get into Java programming but i'm kinda confused on a couple of things: First of all can someone explain what JDK does. I've read some forms on programming Java and i keep seeing JDK. Then I see using it with notepad or notepad++, so how do i do that and how come you need to do that? Then i see things like IDE's which I also dont understand. That's what I remember I have to ask (I probably have more but i forgot).


    I know i seem clueless but i am kinda new to programming (i know basic programming for python) so if there is more info you have (other info about Java, good tutorials, software preferably free, or any other helpful info I would appreciate it greatly)! So thank you in advance. Detailed answers are really helpful.


  2. #2
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help understanding Java

    The JDK is the Java Development Kit, and it contains the Java compiler. The compiler takes the source code you write in ordinary text and turns it into class files. These class files are binary files that are later executed when you run your program.

    The general steps are
    * write your code in a text editor (Notepad, Notepad++, or TextPad on Windows or Kate on Linux - my favourites - or any of the zillions of others)
    * compile your code using the compiler supplied by the JDK
    * run your code using a Java runtime. (For completeness the Java runtime is often called the JRE. That's the thing users have to download to run your code, or run stuff in their browsers etc. It doesn't include a compiler.)

    Notepad and Notepad++ are text editors for Windows. So you would use them to write the source code which you later compile and run. Integrated Development Environments are pieces of software that combine a text editor with the ability to do the compile and run steps. (and much more). I don't recommend you bother with an IDE until you are comfortable with what is involved in compiling your source code, ie can compile what you want from the command line using the JDK compiler.

    A very good place to start is "Hello World!" for Microsoft Windows near the start of Oracle's extensive Tutorial.

Similar Threads

  1. Not understanding this java output...
    By kowaii in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 28th, 2013, 05:33 PM
  2. Replies: 5
    Last Post: February 6th, 2013, 01:32 PM
  3. Replies: 4
    Last Post: April 8th, 2012, 02:03 PM
  4. Help me Understanding Please...
    By Jabetha in forum What's Wrong With My Code?
    Replies: 4
    Last Post: August 17th, 2011, 01:55 PM
  5. Problem understanding Java code modification
    By eagle09 in forum What's Wrong With My Code?
    Replies: 12
    Last Post: June 26th, 2011, 04:13 PM