Temurin OpenJDK Installer and PATH variable [message #1858944] |
Tue, 02 May 2023 15: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 19: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 19:45] by Moderator Report message to a moderator
|
|
|
Re: Temurin OpenJDK Installer and PATH variable [message #1858956 is a reply to message #1858947] |
Wed, 03 May 2023 09:56   |
Eclipse User |
|
|
|
sorry for not being specific enough
we are deploying Temurin via our central software deployment tool in our company so manual change of PATH is not wanted :)
We had the same problem with Python Installer and in consultation with their developers we created an installation option for Append Path (command line parameter "AppendPath=1"). Maybe that is also possible here?
The good but unfortunately no longer developed https://github.com/ojdkbuild/ojdkbuild has the path also appended to the end (and uninstallation did not deleted it but this is another topic :) )
|
|
|
|
Powered by
FUDForum. Page generated in 0.09774 seconds