This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions
  • 7,916,821 Comments

Discussions

Newbie & Windows 10 setup

bdd1ac13-1cb0-4246-acf1-6a177e303a41
edited Feb 25, 2016 9:35PM in New To Java

Hi everyone! Newbie/noon in the house warning/alert

Running Windows 10, 64 bix

Running JDK:  jdk1.7.0_80

I am installing Java SDK (installed, not a problem).

I have installed Eclipse as well (installed, not a problem)

So I am trying to configure my PATH settings to finish out the install of the Java SDK and I am trying to do it for Windows 10.

Problem is when I get to the "Environment Variables" and set the PATH variable.  In a nutshell, I am getting a different window then what the directions show/say.

For example:

Here are all of the steps I am trying to complete: http://java-buddy.blogspot.com/2015/08/install-jdk-8-on-windows-10-and-set-path.html#comment-form

And on the last steps, when I have clicked through to System Properties> Environment Variables box>

java 03.png

Click on the word "PATH" in the lower box labeled "System Variables"

java 04.png

then click on the "edit" button, the box that comes up for me (this happens on my laptop and PC :-/  ) is the "Edit Environment Variable" box!!! :-(  

java 05.png

It should open a 2 line window "Edit System Variable" and have 2 lines....Variable Name & Variable Value.

++Note++ This is a screen shot of what should open, not what happens for me.

java 06.png

Again I am getting the same behavior from installing on my laptop and my desktop.

----------------------------------------------------------------------

When I run the command line prompt "java" (no quotes), it runs fine

When I run the command line prompt "java -version" (no quotes), I get these 3 lines returned:

java 01.png

When I run the command line prompt "javac" (no quotes),

java 02.png


Thanks for your time and expertise to a

Rigoberto

Answers

  • Unknown
    edited Feb 22, 2016 6:25PM
    So I am trying to configure my PATH settings to finish out the install of the Java SDK and I am trying to do it for Windows 10.
    

    I suggest you first create an environment variable JAVA_HOME and set it to point to the Java folder you installed. This should be the folder ABOVE the 'bin' folder.

    Problem is when I get to the "Environment Variables" and set the PATH variable.  In a nutshell, I am getting a different window then what the directions show/say.
    

    That's ok - use what YOUR screen shows you.

    It should open a 2 line window "Edit System Variable" and have 2 lines....Variable Name & Variable Value.
    ++Note++ This is a screen shot of what should open, not what happens for me.
    
    java 06.png

    No - YOU did NOT write the Windows code - Microsoft wrote it. Use what they gave you.

    You selected the PATH variable and, to make it EASIER for people, that parsed the path and put EACH value on a separate line. Then all those buttons make it easy to move things up/down/other and get them in the order you want them.

    So just select 'New' and add your new value. Then make sure it is the FIRST one of the list. If it isn't then use the buttons to move it up to first position.

    If you did what I suggested and created a JAVA_HOME variable then your entry will look like

    %JAVA_HOME/bin
    

    Otherwise you have put the full path to that bin folder.

    When I run the command line prompt "java" (no quotes), it runs fine
    
    When I run the command line prompt "java -version" (no quotes), I get these 3 lines returned
    java 01.png

    Yes - because the install will put the exe in the Windows system folder where anyone can find it.

     When I run the command line prompt "javac" (no quotes), 
    
    java 02.png

    Yes - because you haven't set the PATH to the Java 'bin' folder yet. The install does NOT put the 'javac' executable in the Windows system folder; only the Java executable.

    The Java Tutorials has trails that cover ALL of the basic Java functionality including how to properly set the PATH and CLASSPATH variables.

    https://docs.oracle.com/javase/tutorial/essential/environment/paths.html

    Rigoberto
  • Rigoberto
    Rigoberto Technology Specialist New YorkMember Posts: 27
    edited Feb 25, 2016 9:35PM

    I've got the following instructions from How to set the path in Microsoft Windows, and it really helped me. I was having the same problem.

         Setting the path and variables in Windows 8 and Windows 10

        1. From the Desktop, right-click the very bottom left corner of the screen to get the Power User Task Menu.
        2. From the Power User Task Menu, click System.
        3. Click the Advanced System Settings link in the left column.
        4. In the System Properties window, click on the Advanced tab, then click theEnvironment Variables button near the bottom of that tab.
        5. In the Environment Variables window (pictured below), highlight the Path variable in the "System variables" section and click the Edit button. Add or modify the path lines with the paths you want the computer to access. Each different directory is separated with a semicolon as shown below.

          C:\Program Files;C:\Winnt;C:\Winnt\System32

                                            Windows environmental path settings

    Also, make sure you provide the path for the 64-bit version, as well.

                    C:\Program Files\Java\jdk1.8.0_66\bin

This discussion has been closed.