Yourkit 2021.11 installation problems on Windws 10

Questions about YourKit Java Profiler
Locked
rtcsvargh
Posts: 3
Joined: Wed Mar 23, 2022 8:36 am

Yourkit 2021.11 installation problems on Windws 10

Post by rtcsvargh »

I am using YourKit on a Customer Computer with limited access, but I have local Admin permissions, full access to c drive.

Windows 10 Version 10.0.19042.1469

Problem 1: Installation problem:
1) Downloaded YourKit-JavaProfiler-2021.11-b227.exe
2) Clicking Yes on User Account Control Do you want to allow this app to make...
3) Error: "Windows 7 or newer is required"

Problem 2: Working around Problem 1:
1) Extracting the content from the exe.
2) When trying to start profiler.exe, the following error comes:
3) Error: YourKit.. cannot run on java8..., it requires Java 11.
4) I have installed java8 and Java 11
JAVA_HOME and PATH are pointing to Java11 Home and Java11Home\bin.
All programs use Java11 except the exe

Problem 3: Working arround Problem 2:
1) I pointed JAVA_HOME to the bundled JRE, then created a batch file with java -jar ...yourkit.jar
2) Yourkit starts without problems, but:
3) After integrating with the IDEA and starting some programs in IDE with the yourkit agent, again the Problem 2, 3) occurs.

How can I make Yourkit detect the java enrioment properly,
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Yourkit 2021.11 installation problems on Windws 10

Post by Anton Katilin »

Hi,

It's a new issue. It seems that the system is special.
Problem 1: Installation problem:
1) Downloaded YourKit-JavaProfiler-2021.11-b227.exe
2) Clicking Yes on User Account Control Do you want to allow this app to make...
3) Error: "Windows 7 or newer is required"
What is the Windows edition? What is the locale?
Problem 2: Working around Problem 1:
1) Extracting the content from the exe.
2) When trying to start profiler.exe, the following error comes:
3) Error: YourKit.. cannot run on java8..., it requires Java 11.
4) I have installed java8 and Java 11
JAVA_HOME and PATH are pointing to Java11 Home and Java11Home\bin.
All programs use Java11 except the exe
JRE is bundled in subdirectory jre64.
You likely used a tool which does not properly unpack NSIS-based installer content.
Please use 7z from command line, it's known to work properly:
7z x YourKit-JavaProfiler-2021.11-b227.exe
Problem 3: Working arround Problem 2:
1) I pointed JAVA_HOME to the bundled JRE, then created a batch file with java -jar ...yourkit.jar
2) Yourkit starts without problems, but:
3) After integrating with the IDEA and starting some programs in IDE with the yourkit agent, again the Problem 2, 3) occur
It's all very strange.

Under which user do you work? Please try running the installer under normal user.
rtcsvargh
Posts: 3
Joined: Wed Mar 23, 2022 8:36 am

Re: Yourkit 2021.11 installation problems on Windws 10

Post by rtcsvargh »

1) The customer has Windows 10 Enterprise(Shown in Startmenubar) Virtual Machine in a Citrix Enviroment.
I am using INtellij 2021.3.2 and Java11 and also java8 on it.
I can start YourKit using the bundled jr unsing java -jar ...

2) I used the recent 7Z GUI for extracting and Yourkit starts also sucessfully with the bundles JRE and I can do profiling.

The real problem for me is that profiler.exe and the agent in the IDE seem not using the configured JAVA_HOME and PATH enviroment variables
All other java programs like dbvisualizer, squirrel maven etc. do respect the enviroment variable.

3) The user has local admin rights (e.g. changing user/systemenviroment variables), but I cannot create other users or change permissions.

Do you have any ideas, why only profiler.exe and the integrated agent in the IDE do not detect the JAVA_HOME/PATH enviroment variables?
I guess, this might be related to an old registry setting of a YourKit2019 probably which used Java8? Does this help?
rtcsvargh
Posts: 3
Joined: Wed Mar 23, 2022 8:36 am

Re: Yourkit 2021.11 installation problems on Windws 10

Post by rtcsvargh »

I found my mistake: in ui.ini an old java was configured three years ago.
It would be nice,
a) if yourkit tells from where it picks up the java (form enviroment, or ui.ini etc) and
b) plain old zip files for windows too (like linux) could be also provided. Then profiling can easily be started without admin rights and complicated setup with User access control dialog

Thank you!
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Yourkit 2021.11 installation problems on Windws 10

Post by Anton Katilin »

Hi,

It's great that the problem has been solved.
a) if yourkit tells from where it picks up the java (form enviroment, or ui.ini etc) and
This information can be found in the profiler UI log file <user home>/.yjp/log/profiler-ui-<pid>.log
b) plain old zip files for windows too (like linux) could be also provided. Then profiling can easily be started without admin rights and complicated setup with User access control dialog
7z and other similar tools can unpack the installer content like if it was a .zip file.
Locked