Help me setting up Java 1.6

Hi guys:

Well, as you can see, this is my first post in this forum.

I'm having a hard time trying to setup the user and system variables for Java SDK 1.6.

Please anyone, help me out in detail how to setup the JAVA_HOME variable so that I can start to program on java.

Until now, this is the way I'm doing it:

In the user variables, I create the JAVA_HOME variable name and the value I set up for it is: C:\Archivos de programa\Java\jdk1.6.0

For the system variables, I go to the path variable and add the following: ;%JAVA_HOME%\bin

What am I doing wrong?

Sun's online help wasn't that helpful since it lacks details and it has some errors in the way they differentiate WinXP with Win2000.

Thanks in advance for any help.

[786 byte] By [NewBorn_In_Javaa] at [2007-11-26 15:35:11]
# 1
> What am I doing wrongSorry, but you don't even state that you have a problem to begin with. If you are getting some kind of error, what is it?
gimbal2a at 2007-7-8 21:52:40 > top of Java-index,Java Essentials,New To Java...
# 2

I need to setup the system variables so that I can run java commands without entering the full path of the location of Java's bin folder.

As an example: C:\documents and settings\javac Hello.java

instead of: C:\Archivos de Programa\Java\jdk1.6.0\bin\javac hello.java

That's all I want and thanks for any help.

NewBorn_In_Javaa at 2007-7-8 21:52:40 > top of Java-index,Java Essentials,New To Java...
# 3
My Computer -> Properties -> Advanced -> Environment VariablesAdd the C:\Archivos de Programa\Java\jdk1.6.0\bin\ to the PATH variable's value.
CeciNEstPasUnProgrammeura at 2007-7-8 21:52:40 > top of Java-index,Java Essentials,New To Java...
# 4
Perhaps all you need is to start another Command Prompt, as Command Prompts that are already open won't see the new values of environment variables.
Herko_ter_Horsta at 2007-7-8 21:52:40 > top of Java-index,Java Essentials,New To Java...
# 5
This might help you a great deal. http://access1.sun.com/FAQSets/newtojavatechfaq.html
qUesT_foR_knOwLeDgea at 2007-7-8 21:52:40 > top of Java-index,Java Essentials,New To Java...
# 6

You can run the Java 2 SDK without setting the PATH variable, or you can optionally set it as a convenience.

What you need to do is change your path variable. This is most easily done by opening an MS-DOS prompt and typing PATH to see what the path is set to currently. Then open autoexec.bat in Notepad and make the changes to PATH.

See specific instructions on this on step 5 on this page:

http://java.sun.com/j2se/1.4.2/install-windows.html

JROTC-JAVAa at 2007-7-8 21:52:40 > top of Java-index,Java Essentials,New To Java...