Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trying to edit the javapath folder after installing the JDK  RSS feed

 
lewis manuel
Ranch Hand
Posts: 64
2
  • Mark post as helpful
  • send pies
  • 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?
 
Carey Brown
Bartender
Posts: 2996
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • 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;...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!