Hi Sara, >From the 3 directory names you find in your java directory, I may conclude that all of these are just different versions of JRE. If these're really all what you find, then you definitely don't have a JDK installation. Yes, JRE is part of JDK. If you're just going to run java programs(as an end user), you really don't have to install JDK. JRE has, among others, the java interpreter needed to run java programs. If you however need to develop programs in java(as you should in this course), you do need the JDK. JDK includes, in addition to JRE, the tools needed for developing java programs like the java compiler javac, and other tools for debugging, profiling, generating documentation(javadoc), ...etc. For the command line you're using, can you please clarify exactly what error message do you get when trying it? My first guess is, as you don't have a JDK installation(as the 3 directory names you found dictate), this path doesn't exist on your computer. If this isn't the case, you may post more detailed description of the problem you're encountering.
________________________________ From: Sara Henry <[email protected]> To: [email protected] Sent: Thursday, July 9, 2009 3:49:27 PM Subject: [java programming] regarding installation of jdk/jre Hello Everyone, I am just a beginner for the J2SE course. I have a little confusion with jdk and jre on my disk i may see 3 directories in java directory, already lying there with the names jre1.6.0_02, jre1.6..0_07 andd jre6. If we say JRE is a part of JDK then I don't need to install for JDK? I am trying to compile my program in console using command at the command promt C:\Program Files\Java\jdk1..6.0_02\bin\javac Hello.java But it isn't helping.. :( Can anybody help me with setting paths and class paths and compiling and running prog at command prompt. Thanks --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
