Results 1 to 9 of 9
  1. #1
    Gunnadin is offline Member
    Join Date
    Apr 2014
    Posts
    13
    Rep Power
    0

    Default How to set JDK8 as PATH?

    My OS: Windows 7
    Problem:
    I've tried where javac in command prompt but it can't locate it. I need to know how to set JDK 8 as PATH.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,814
    Rep Power
    25

    Default Re: How to set JDK8 as PATH?

    1) find JDK's bin folder
    2) See the installation instructions: JDK 8 and JRE 8 Installation Start Here
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Gunnadin is offline Member
    Join Date
    Apr 2014
    Posts
    13
    Rep Power
    0

    Default Re: How to set JDK8 as PATH?

    I set the PATH, but I could not find the bin. I deleted JDK 7 earlier, but my program will not compile since JDK 8 is nowhere to be found even though it's installed
    Last edited by Gunnadin; 05-05-2014 at 11:42 PM.

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,814
    Rep Power
    25

    Default Re: How to set JDK8 as PATH?

    What's wrong with the OS's Search? Why can't it find the files in the bin folder like: javac.exe?

    I set the PATH, but I could not find the bin.
    The PATH environment variable should be changed to have the path to the bin folder. How did you set the PATH of you did not have the path to the bin folder?
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    Gunnadin is offline Member
    Join Date
    Apr 2014
    Posts
    13
    Rep Power
    0

    Default Re: How to set JDK8 as PATH?

    I copied C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.8.0\bin from the link you gave me after I couldn't find the bin. Here's the link I copied it from: JDK Installation for Microsoft Windows

    Also I just ran Javac.exe in command prompt and it doesn't recognize it at all

    I also have install the Java SE Development kit 3 times and had no success getting it to find JDK 8.
    Last edited by Gunnadin; 05-06-2014 at 12:14 AM.

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,814
    Rep Power
    25

    Default Re: How to set JDK8 as PATH?

    Does your OS have a file Search? Find the folder that has the javac.exe file.


    C:\Program Files\Java\jdk1.8.0\bin
    Does that path exist on your PC?
    If you don't understand my response, don't ignore it, ask a question.

  7. #7
    Gunnadin is offline Member
    Join Date
    Apr 2014
    Posts
    13
    Rep Power
    0

    Default Re: How to set JDK8 as PATH?

    I see it a Java file, but the file is Java1.7.0 and it includes the bin.
    I already removed previous versions of Java and JDK's but this is still there. Should I delete the folder?

    Edit:
    I just deleted the folder and will now reattempt installation of Java SE Development Kit 8

  8. #8
    Gunnadin is offline Member
    Join Date
    Apr 2014
    Posts
    13
    Rep Power
    0

    Default Re: How to set JDK8 as PATH?

    JDK 8 just installed finally and I see the bin folder. I'm going to set the path right now and see if it works

  9. #9
    Gunnadin is offline Member
    Join Date
    Apr 2014
    Posts
    13
    Rep Power
    0

    Default Re: How to set JDK8 as PATH?

    So it's working with Eclipse IDE but not IntelliJ IDEA. Oh well, I'll stick with Eclipse. Thanks so much for your help.

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2011, 04:22 AM
  2. Replies: 1
    Last Post: 11-14-2011, 05:39 PM
  3. Which path to take?
    By clschalkwyk in forum New To Java
    Replies: 4
    Last Post: 04-06-2011, 11:18 AM
  4. setting class-path & Library Path in ubantu
    By programmer_007 in forum Eclipse
    Replies: 18
    Last Post: 02-22-2010, 01:31 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •