Change java symlink
There Windows 8
is no more java in my command line . I found that there C:\ProgramData\Oracle\Java\javapath
is a wrong symbolic link in that I cannot change. When I try to change, I got the error:
Problem with Shortcut
The name 'C:\Program Files\Java\jre1.8.0_45\bin\javaw.exe' specified in the Target box is not valid. Make sure the path and file name are correct.
When I try to create a shortcut I have a message:
Windows can't create a shortcut here.
Do you want the shortcut to be placed on the desktop instead?
[Yes] [No]
How to solve this problem?
source to share
This is how you solve this problem:
- Remove original symbolic links. All three, I think there are three.
- Don't create a shortcut. Label and Symbols do not match.
- Open a command prompt in the same directory and create new Symlinks using the "mklink" command and point it to your JDK installation.
source to share
If you are using java from the command line, chances are high that you will need to set the correct JAVA_HOME variable as well. Some tools depend on it.
To do this, edit the system environment variables:
- Add JAVA_HOME and point it to the installation path of the java version you want you can also use a symlink for the folder
- In the variable "Path" find "C: \ ProgramData \ Oracle \ Java \ javapath;" and replace it with% JAVA_HOME% \ bin
source to share
First remove java from your system, after deleting the oracle folder in C: \ ProgramData strong>. Then install java again. Then click javac.bat in bin jdk folder. After checking with command line, >javac
all options are displayed. Then it works fine ...
I think this is a duplicate
How do I create a symbolic link in Java while running on Linux?
source to share