With new Gen 8.6 (+ PTFs) installation on Windows 11 PC in directory C:\Apps\Gen.
Trying to run Gen Studio or DTU after pinning them to the Windows Start Menu from the actual "All Apps" section.
See dialog box with error:
***Java was started but returned exit code=13
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\javaw.exe
...
***
Full error screenshot:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath is at the front of the System environment variable PATH.
Gen 8.6
Windows 11
Referencing the Gen 8.6 program shortcuts folder "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\CA\Gen 8.6".
The shortcut "Gen Studio" has Target "C:\Program Files (x86)\CA\Gen86\Gen\GenStudio.bat" which puts %Gen86JRE%bin at the front of the PATH and then calls "%GEN86%gen\GenStudio\GenStudio.exe"
Support could not recreate the reported behaviour in house.
In this scenario it appears that for some reason GenStudio.exe is being executed rather than GenStudio.bat. Therefore it is just trying to find javaw.exe from the current PATH without first putting %Gen86JRE%bin at the front of it.
To workaround modify the system PATH environment variable and append %GEN86JRE%bin to the front of it so that the correct version of javaw.exe is used and avoids any potential Java version incompatibility.
Related article: JRE/JDK error launching the Gen DTU from the taskbar in Windows 11