Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Trying to edit the javapath folder after installing the JDK

Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So after installing the newest JDK version available, I been trying to edit the javaPath folder that contains 3 symbolic links so it can have just have one symbolic link that points to the bin folder in my program files folder. So what I tried to do is open my windows command prompt in adminstrator settings, I entered this command mklink /d C:\ProgramData\Oracle\Java\javapath C:\Program Files\Java\jdk1.8.0_65\bin\, and it gave me an error saying that the folder already exists. Why does it say that? I not trying to create a folder(mostly because the javapath is the folder that I want to place my symbolic link in). The whole reason I'm doing this is because at the moment, I can not compile java programs using the javac command in the windows command prompt. The only link in the PATH variable that relates to java is this path C:\ProgramData\Oracle\Java\javapath and I don't want to remove because it might cause problems. All I want to do is to create one symbolic link that connects to all the exes inside the bin folder of the JDK. I could put the path of the bin folder in the path variable but I dont know if it would cause conflict with this path C:\ProgramData\Oracle\Java\javapath. If it doesn't, then what is the point of having this path C:\ProgramData\Oracle\Java\javapath that only has three symbolic links when I could get rid of that and put the path of the bin folder in the path variable and have all those exes available if I so choose to use java, javac, etc in the command prompt?
Saloon Keeper
Posts: 9574
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That symbolic link, "C:\ProgramData\Oracle\Java\javapath", already exists with the new Java installs. Microsoft locked Oracle out of the System32 directory so this is what Oracle is now doing to have a single location where the current java runtime executables reside. You still need to set the PATH environment so that you can get to the development executables.

I create (or set) the env JAVA_HOME to the current Java home directory and then add to PATH ...;%JAVA_HOME%\bin;...
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
Garden Master Course kickstarter
    Bookmark Topic Watch Topic
  • New Topic