Firstly remove or uninstall the jdk on your systemand then download a jdk version from SUN site and install it, jdk and jre come in a package, as u install jdk it will notify u to install jre once the installation is done right click on my computer click on properties a tabbed pane will appear in that search for advanced tab and click on it,then click on environmental variables button, u will see user variables and system variables,In uservariables click on new and add give name as: JAVA_HOME and for path go to your jdk installed directory .also add name:classpath and in path point this path to the bin folder in that jdk folder.
Now for checking whrether its installed or not, goto command prompt and type javac if some messages come then its installed or else start over again. On Thu, Jul 9, 2009 at 6:19 PM, Sara Henry <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
