Temurin OpenJDK Installer and PATH variable [message #1858944] |
Tue, 02 May 2023 11:39  |
Eclipse User |
|
|
|
hi,
i dont know if this is the correct forum for my question but i will give it a try:
after a Temurin OpenJDK installation PATH variable looks like this:
Path=C:\Program Files\Eclipse Adoptium\jdk-11.0.19.7-hotspot\bin;C:\Program Files (x86)\Eclipse Adoptium\jdk-8.0.372.7-hotspot\bin;C:\Program Files\Eclipse Adoptium\jdk-8.0.372.7-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v.0\;C:\WINDOWS\System32\OpenSSH\;...
but it should better looking this way:
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Eclipse Adoptium\jdk-11.0.19.7-hotspot\bin;C:\Program Files (x86)\Eclipse Adoptium\jdk-8.0.372.7-hotspot\bin;C:\Program Files\Eclipse Adoptium\jdk-8.0.372.7-hotspot\bin;....
is there any possibility to avoid it? Because it makes a difference in the sequence which path is first and which not..
Regards,
Sascha
|
|
|
Re: Temurin OpenJDK Installer and PATH variable [message #1858947 is a reply to message #1858944] |
Tue, 02 May 2023 15:43   |
Eclipse User |
|
|
|
No worries, you've come to the right spot for your question. Yeah, the order of the PATH variable entries can actually cause some issues, especially when you've got multiple versions of a program or library installed. To make sure your system directories are prioritized, you can just go ahead and edit the PATH variable yourself. Here's how to do that on Windows:
- Right-click the Computer icon on your desktop or in the Start menu, and hit "Properties". Click "Advanced system settings" on the left.
- In the System Properties window, hit the "Environment Variables" button near the bottom right.
- Now, look for the "Path" (or "PATH") variable in the "System variables" section, and click "Edit".
- You'll see the "Edit environment variable" window pop up. Here, you can tweak the PATH variable. Just make sure to list the system directories before those pesky OpenJDK directories.
Remember to separate each entry with a semicolon (;). Once you're done, hit "OK" to save your changes and close any remaining windows.
[Updated on: Tue, 02 May 2023 15:45] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.13437 seconds