facebook

JProfiler and MyEclipse 7.0

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #294745 Reply

    victorstar
    Member

    We’ve been using JProfiler 5 in MyEclipse 6.* and everything worked just flawlessly.
    Now after upgrade to MyEclipse 7.0 I just can’t make it work there.

    I’ve spent few hours trying to figure out how to install it now since the way of installing the plugins has changed. Finally I found a “dropins” way and installed it there.
    When I’m checking installed plugins I can now see jprofiler there. But it doesn’t appear anywhere else – not on menues, configurations etc.

    Any idea on how to approach this?
    Would appreciate any help.

    Thanks,
    Victor

    #294746

    victorstar
    Member

    Correction: I do see “JProfiler” in preferences, but there is no “Profile” option in either menu or “Commands”

    #294779

    support-joy
    Member

    Hey Victor,

    Sorry that you came across this issue. I have reported this to the dev team. They are investigating this issue.

    #294873

    Riyad Kalla
    Member

    Victor,

    1. Make sure the version of JProfiler you are using is compatible with Eclipse 3.4 (which MyEclipse 7.0 is based on — ME 6.0 was based on Eclipse 3.3).

    2. Open Window > Show View > Other… > General > Errors, and scan it to see if there are any init errors regarding the JProfiler plugins that might explain why they are failing to load.

    #294940

    victorstar
    Member

    1.I’m using the latest version of JProfiler, so little I can do about it…
    2. This is a good tip. I do get the following warnings:

    An error occurred while generating manifest for D:\Program Files\MyEclipse 7.0\dropins\plugins.; artifact folder at D:\Program Files\MyEclipse 7.0\dropins\plugins has files: com.jprofiler.integrations.eclipse(dir):
    
    Stack Trace:
    org.eclipse.osgi.service.pluginconversion.PluginConversionException: Could not find a META-INF/MANIFEST.MF, plugin.xml or a fragment.xml in D:\Program Files\MyEclipse 7.0\dropins\plugins.
    ..........
    

    and

    An error occurred while generating manifest for D:\Program Files\MyEclipse 7.0\dropins\features.; artifact folder at D:\Program Files\MyEclipse 7.0\dropins\features has files: com.jprofiler.eclipse.integrations.feature(dir)
    
    Stack Trace:
    org.eclipse.osgi.service.pluginconversion.PluginConversionException: Could not find a META-INF/MANIFEST.MF, plugin.xml or a fragment.xml in D:\Program Files\MyEclipse 7.0\dropins\features.
    ............
    

    I’ve checked and JProfiler does have both “plugins.xml” and META-INF\manifest.mf files under “plugins” as well as “feature.xml” under “features” directory.

    The directory structure is like this:

    
    dropins
    |__ plugins
    |   |__ com.jprofiler.integrations.eclipse
    |       |__ META-INF
    |       |   |__ MANIFEST.MF
    |       |__ plugin.xml
    |       |__ ....
    |           ....
    |
    |__ features
        |__ com.jprofiler.eclipse.integrations.feature
            |__ feature.xml
    

    Which seems to match what I read in the tutorial
    So why would eclipse look for plugin.xml etc. in the plugins/features directories themselves rather than plugin’s subdirectories?

    #295013

    Riyad Kalla
    Member

    Victor,

    Very odd, do you have a link to the version of JProfiler you are using so I can try and duplicate this?

    #295047

    victorstar
    Member

    It’s the latest 5.2.1 one that could be downloaded from here:
    http://www.ej-technologies.com/download/jprofiler/files.php

    I could send you the config files as well should you need them.
    Email me at:
    eclipse {at} victorstar {dot} com

    #295058

    victorstar
    Member

    According to JProfiler’s support team I should see “Profiler” item if I go to “Customize Perspective -> Commands”. They are saying it should be there even without JProfiler.
    But when I’m checking both with or without JProfiler I don’t see “Profile” option there.

    #295075

    victorstar
    Member

    I’ve also tried clean MyEclipse 7.0 install and confirmed that there is no “Profile” option in “Commands” there.
    I’ve installed JProfiler on this fresh MyEclipse 7.0 installation. There are no errors this time in the log but the end result in the same:
    JProfiler is there in the Preferences, in the loaded plugins, but there is no “Profile” options to actually run it.

    #295115

    victorstar
    Member

    So – how do you enable “Profile” option in MyEclipse 7.0????

    #295136

    Riyad Kalla
    Member

    Victor,

    Sorry for the delay, this fell in my plate and I’ve been trying to get time to evaluate it. Here’s what I did:

    1. Downloaded 5.2.1 from the link provided (thanks) — in ZIP form
    2. Created a D:\Java\Applications\Pulse\MyEclipse 7.0\dropins\plugins\com.jprofiler.integrations.eclipse directory for myself
    3. Unzipped /integrations/eclipse34-jprofiler.zip into that new directory and fired up MyEclipse
    4. Checked my error log on startup, no errors.

    (so far this is all per the instructions in the README.html in /integrations)

    5. I checked my plugin details, and see nothing from jprofiler in there.
    6. I noticed in the /integrations directory a feature JAR, so I manually created a /features dir under my /dropins dir and dropped that JAR in there: more specifically “com.jprofiler.eclipse.integrations.feature.jar”
    7. Restarted MyEclipse and now I see the feature listed in the plugin details

    8. I went to Window > Prefs > JProfiler and setup the binary and I was off to the races.

    So I think the bit they missed in their doc is the feature installation.

    Attachments:
    You must be logged in to view attached files.
    #295145

    victorstar
    Member

    Riyad,

    Thanks for your help on this. Unfortunately there is more to it than just seing JProfiler in the “Preferences”.
    I’ve mentioned that I do have it there. BUT. There is no way to run it – that’s the problem!
    Usually when you right-click on the class you see “Profile” next to “Run” and “Debug” menues. At least this is how it was in MyEclipse 6.*
    But THERE IS NO “Profile” option in MyEclipse 7.0 – this is the problem.
    And also unlike 6.* there is NO “Profile” option in “Customize Perspective” -> “Commands”.

    So yes, I do have JProfiler in MyEclipse. I just can’t run it 🙂

    I’m very grateful for your attempts to help. I’m positive you can help me to nail it!

    #295188

    Riyad Kalla
    Member

    Damn, I see what you mean Victor. I would have to push this back on the JProfiler team at this point. Digging through our startup logs I’m seeing no errors on plugin startup, and given that I didn’t get *anything* until I added the feature — something that wasn’t covered in their docs — I’m wondering if some other bundle they require is missing as well?

    #295202

    victorstar
    Member

    It looks like “Profile” option was there in default MyEclipse 6.* installation but it’s not there in 7.*.
    Not sure which bundle is responsible for adding this.
    Quoting JProfiler’s support:
    “Unfortunately, if the Profile command is not available in the list, I don’t know what to do. We don’t activate this, it is part of the JDT. You would have to ask the MyEclipse team how this can be activated.

    The profile command should be always available (at list in the base eclipse 3.4 distribution).”

    So here I am. JProfiler guys are pushing it on you and you are pushing this on JProfiler. And I can’t profile applications in MyEclipse 🙂
    Now rather than me going back and forth between you guys, is there any chance you could get in touch with each other? This would probably greatly speed things up. And your customers will win. 🙂 I don’t mind being in the loop of course cause I’m the most interested person in all this :-/

    If you email me at “eclipse {at} victorstar {dot} com” I’ll try to get you connected with JProfiler’s team (if I can get their emails)

    And thank you for helping me out on this!

    Victor

    #295272

    Riyad Kalla
    Member

    “Unfortunately, if the Profile command is not available in the list, I don’t know what to do. We don’t activate this, it is part of the JDT. You would have to ask the MyEclipse team how this can be activated.

    Profile is not part of the base JDT — grab an Eclipse SDK bundle, there is no Profile anywhere in there… unless they are adding (or expect) some base TPTP bundles to be there?

    So here I am. JProfiler guys are pushing it on you and you are pushing this on JProfiler. And I can’t profile applications in MyEclipse 🙂
    Now rather than me going back and forth between you guys, is there any chance you could get in touch with each other? This would probably greatly speed things up. And your customers will win. 🙂 I don’t mind being in the loop of course cause I’m the most interested person in all this :-/

    Absolutely — I’ll email you and we’ll get a dialog going with them. Thanks for getting this started.

Viewing 15 posts - 1 through 15 (of 21 total)
Reply To: JProfiler and MyEclipse 7.0

You must be logged in to post in the forum log in