Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Temurin OpenJDK Installer and PATH variable(temurin installers adding program folder path to PATH variable but do prepending instead of appending)
Temurin OpenJDK Installer and PATH variable [message #1858944] Tue, 02 May 2023 15:39 Go to next message
Sascha Osdoba is currently offline Sascha OsdobaFriend
Messages: 2
Registered: May 2023
Junior Member
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 Go to previous messageGo to next message
Kabiru Usman is currently offline Kabiru UsmanFriend
Messages: 42
Registered: April 2023
Member
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:

  1. Right-click the Computer icon on your desktop or in the Start menu, and hit "Properties". Click "Advanced system settings" on the left.
  2. In the System Properties window, hit the "Environment Variables" button near the bottom right.
  3. Now, look for the "Path" (or "PATH") variable in the "System variables" section, and click "Edit".
  4. 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]

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 Go to previous messageGo to next message
Sascha Osdoba is currently offline Sascha OsdobaFriend
Messages: 2
Registered: May 2023
Junior Member
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 :) )
Re: Temurin OpenJDK Installer and PATH variable [message #1858975 is a reply to message #1858956] Wed, 03 May 2023 16:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
If you need the Temurin installer to do something different you'll have to ask about that here:

https://github.com/adoptium/adoptium-support/issues/new/choose


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:ui not working?
Next Topic:HTTP Status 404 error in tomcat
Goto Forum:
  


Current Time: Fri Apr 26 12:18:20 GMT 2024

Powered by FUDForum. Page generated in 0.08734 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top