majkinetor / au-packages

Chocolatey packages by majkinetor
https://gist.github.com/majkinetor/a700c70b8847b29ebb1c918d47ee4eb1
GNU General Public License v2.0
66 stars 44 forks source link

(yed) Shortcut points to hardcoded java version #167

Open jedfrechette opened 3 years ago

jedfrechette commented 3 years ago

When yed is installed it creates launcher shortcuts that point to the currently installed version of AdoptOpenJDK. When AdoptOpenJDK is later updated these shortcuts break because they point to javaw.exe in a versioned directory that no longer exists.

majkinetor commented 3 years ago

What happens if you just point shortcut to the jar file instead ? Does it work correctly ?

jedfrechette commented 3 years ago

That seems to work. Currently the shortcut Target is something like: "C:\Program Files\AdoptOpenJDK\jre-15.0.1.9-hotspot\bin\javaw.exe" -jar "C:\ProgramData\chocolatey\lib\yed\tools\yed-3.20.1\yed.jar" After stripping the javaw.exe path so that the Target is just: "C:\ProgramData\chocolatey\lib\yed\tools\yed-3.20.1\yed.jar" The shortcut still worked in my test.

majkinetor commented 3 years ago

OK, then I will see to make it like that.