Could not find -Xrun library: yjpagent.dll

Questions about YourKit Java Profiler
Post Reply
parash
Posts: 2
Joined: Mon Jan 16, 2006 9:16 am

Could not find -Xrun library: yjpagent.dll

Post by parash »

Hello There,

I have been trying since a while to run the YourKit in the JBuiklder 2005, I am getting the following error,

"Error occurred during initialization of VM
Could not find -Xrun library: yjpagent.dll"

I am Windows 2000 user, I have set the PATH to C:\Program Files\YourKit Java Profiler 5.0.8\bin\win-amd64.

After that integarted the IDE with the YourKit 5.0.8 and tried to launch the Profiler from the JBuilder, the above error recurrs. Am I missing anything.

Kindly let me know, I Thank you for your help in advance

Parash
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hi,

Do you have 32 bit or 64 bit Java?

What does java -version print?

You should use C:\Program Files\YourKit Java Profiler 5.0.8\bin\win-amd64 for 64 bit Java only. For 32 bit Java, C:\Program Files\YourKit Java Profiler 5.0.8\bin\win32 should be used instead.
parash
Posts: 2
Joined: Mon Jan 16, 2006 9:16 am

Post by parash »

Thanks Anton!!

Here is the out put of the >java -version
>java -version

java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode).

I tried both the options and in each options I tried to excute the help command "java -Xrunyjpagent:help ", was able to get the output with the current PATH set, means I have Windows, 32-bit Java. Though the command at the console is successful, I am getting the error when i tried to launch the Profiler from the JBuilder 2005.

Your help is very much appreciated of what to do. Thanks a bunch

Many Regards
Parash
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

What does the following print?

C:\Borland\JBuilder2005\jdk1.4\bin\java -version


Also, could you please:

1. Download the patched plugin (I added extra debug messages) at

http://www.yourkit.com/download/yourkit ... uilder.jar

2. Close JBuilder (if running)

3. Copy the downloaded file to C:\Borland\JBuilder2005\lib\ext (override the existing file)

4. Launch JBuilder via C:\Borland\JBuilder2005\bin\jbuilder.exe (should open console window of JBuilder)

5. Try Profile - there should be debug messages printed in JBuilder's console (i.e. in the black text window). Could you please post them here.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Have you tried this?
Post Reply