EAP build 618 - cannot compile against API using 1.4.2

Questions about YourKit Java Profiler
Post Reply
epalazzo
Posts: 7
Joined: Mon Jul 11, 2005 2:29 pm

EAP build 618 - cannot compile against API using 1.4.2

Post by epalazzo »

EAP build 618, win2k

The docs say the API requires Java 1.4 or better, but when I try to compile a test class with 1.4.2.08 against the API, I get the following error:

Code: Select all

[loading C:\Program Files\YourKit Java Profiler 4.5 EAP build 618\lib\yjp.jar(com/yourkit/api/Controller.class)]
./YourKitTest.java:3: cannot access com.yourkit.api.Controller
bad class file: C:\Program Files\YourKit Java Profiler 4.5 EAP build 618\lib\yjp.jar(com/yourkit/api/Controller.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import com.yourkit.api.Controller;
Works fine with if I compile my class with 1.5, but I need to test with 1.4.

-ed-
mbesosa
Posts: 1
Joined: Mon Jul 11, 2005 12:36 pm

Post by mbesosa »

This just bit me, too. It sure would be nice to get a build that fixes this....
Vladimir Kondratyev
Posts: 1626
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Docs are out of date. Java 5.0 is required now.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hi,

Actually, the previous infromation that Java 5.0 is required to use the profiler API was not 100% correct.

The part of API to control profiling (class Controller) works with Java 1.4.
Please make sure you use yjp-controller-api-redist.jar, _not_ yjp.jar

Parts of the API for memory snapshot analysis indeed require Java 5.0.

Best regards,
Anton
epalazzo
Posts: 7
Joined: Mon Jul 11, 2005 2:29 pm

Post by epalazzo »

Thanks, I'll try that.
epalazzo
Posts: 7
Joined: Mon Jul 11, 2005 2:29 pm

Post by epalazzo »

This is working fine now that I used the other API.

Thanks for the help!

-ed-
Post Reply