Results 1 to 5 of 5
  1. #1
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    160
    Rep Power
    5

    Default which one neede jre or jdk

    hai
    class Hello{
    public static void main(String ar[]){
    System.out.println("HAI");
    }
    }
    to compile C:\javac Hello.java
    to run this C:\java Hello

    for these two what actually needed is the whole jdk or the only jre
    means if we enter sun's forum to download what actually we want to download jre or jdk

    if jre then what is jdk for

    ok if jdk there will be jre embedded in it so what purpose jdk is used

    thank you

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    5

    Default

    Java Development Kit (JDK)
    Jave Runtime Environment (JRE)

    Which do you think you need?
    My Hobby Project: LegacyClone

  3. #3
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    160
    Rep Power
    5

    Default i don't know to complie itself ,is jdk or jre requires

    jdk is to create the java programme
    jre will run the programe

    i don't know to complie itself ,is jdk or jre requires

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,345
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by javastuden View Post
    jdk is to create the java programme
    jre will run the programe

    i don't know to complie itself ,is jdk or jre requires
    You need both; if you install the JDK you automatically install the JRE as well.

    kind regards,

    Jos

  5. #5
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Quote Originally Posted by javastuden View Post
    jdk is to create the java programme
    jre will run the programe

    i don't know to complie itself ,is jdk or jre requires
    Question, what do accomplish with compilation? The "conversion" (if you want to say it that way) from code to executable (byte-code in Java's case). IOW "create the java programme". You definately do not need either to write code, and writing the code alone does not "create the java programme".

Similar Threads

  1. Help neede with simple Networking program
    By louwhopley in forum New To Java
    Replies: 7
    Last Post: 08-04-2009, 10:01 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
  •