Cannot Profile from Eclipse - 3.0.2

Questions about YourKit Java Profiler
Post Reply
JGutenberg
Posts: 3
Joined: Wed Apr 20, 2005 10:38 pm

Cannot Profile from Eclipse - 3.0.2

Post by JGutenberg »

Eclipse:
Version: 3.0.2
Build id: 200503110845

Run -> Profile -> 'Profile'

A window comes up from the bottom right to the center of the screen with:

Title: Errors Running Operation

Details:

"Plug-in com.yourkit.profiler was unable to load class com.yourkit.eclipsePlugin.YkJavaLocalApplicationLaunchConfigurationDelegate.
java.lang.NoClassDefFoundError: org/eclipse/jdt/launching/JavaLaunchDelegate
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(Unknown Source)
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:298)
org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineClass(EclipseClassLoader.java:223)
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.findClassImpl(DefaultClassLoader.java:281)
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.findClass(DefaultClassLoader.java:172)
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.findLocalClass(AbstractClassLoader.java:220)
org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFindLocalClass(EclipseClassLoader.java:135)
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:59)
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
java.lang.ClassLoader.loadClass(Unknown Source)
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:307)
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:336)
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1313)
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:131)
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:124)
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:113)
org.eclipse.debug.internal.core.ContributedDelegate.getDelegate(ContributedDelegate.java:103)
org.eclipse.debug.internal.core.LaunchConfigurationType.getDelegate(LaunchConfigurationType.java:249)
org.eclipse.debug.internal.core.LaunchConfiguration.getDelegate(LaunchConfiguration.java:360)
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:514)
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
"


Installed the plugin a few times, still doesn't work.
Installed it on 3.0.1 and it didn't work either, so I upgraded. No dice.

Any ideas?
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Please make sure that you are using plug-in for Eclipse 3.0.x (not 3.1!)
JGutenberg
Posts: 3
Joined: Wed Apr 20, 2005 10:38 pm

com.yourkit.eclipsePlugin Problem Solved

Post by JGutenberg »

Solved.

Thank you very much - I chose 3.1 instead of 3.0 initially. After using 3.0 as directed all is working perfectly.

What is 3.1 anyway if the latest release is 3.0.2?


Thanks again,

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

Post by Anton Katilin »

What is 3.1 anyway if the latest release is 3.0.2?
To clarify the situation.

a) We support the official release Eclipse 3.0.x

b) Also we support beta version of Eclipse 3.1.

Plugins for a) and b) are different, because in Eclipse 3.1 an API is introduced that we can use to avoid usage of non-public API we were bound to use in Eclipse 3.0.x.

In the next version we'll try to automatically choose appropriate plugin, depending on actually installed Eclipse version (3.0 or 3.1).
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

By the way, since 4.0.10 appropriate plugin (3.0 vs 3.1) is automatically chosen.
Post Reply