Bug 204167 - Add detection support for Apache Harmony VM
Summary: Add detection support for Apache Harmony VM
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 214635
Blocks:
  Show dependency tree
 
Reported: 2007-09-20 14:15 EDT by Wayne Beaton CLA
Modified: 2008-04-28 17:26 EDT (History)
6 users (show)

See Also:


Attachments
harmony.ee (2.41 KB, application/octet-stream)
2008-01-08 11:59 EST, Andrew Niefer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wayne Beaton CLA 2007-09-20 14:15:52 EDT
The Apache Harmony crew have developed a plug-in that helps Eclipse identify an Apache Harmony VM, and locate the Java sources and what-not. The plug-in is currently being used as part of the InHarmonyWithEclipse distribution and appears to work well. I think it'd be a handy inclusion in the base platform.

If others agree, I'd be happy to help with the process.
Comment 1 Tim Ellison CLA 2007-09-20 17:40:56 EDT
I'm also willing to help with this.
Comment 2 Darin Wright CLA 2007-09-21 09:57:01 EDT
For starters, someone should attach a patch to include the support in JDT. If a "vm type" extension is used, I would suggest that the contribution should be made to the org.eclipse.jdt.launching plug-in. UI portions can be contributed to the org.eclipse.jdt.debug.ui plug-in.
Comment 3 Darin Wright CLA 2008-01-07 12:55:18 EST
Wayne/Tim, do you know if the new "JRE execution environment description file" could be used to launch Harmony VM's - i.e. such that we could avoid the need for a new plug-in or VM type to support Harmony?

@see http://wiki.eclipse.org/Execution_Environment_Descriptions

For example, we can now support the launching of J9 VM's without the old j9.launching plug-in.

@see http://wiki.eclipse.org/J9#Configuring_J9_into_your_IDE
Comment 4 Jeff McAffer CLA 2008-01-07 13:14:41 EST
Indeed, the ee files were put in place at least in part to make this sort of thing easier.  Andrew may have something in this space.
Comment 5 Tim Ellison CLA 2008-01-07 17:16:24 EST
Just looking at the wiki page description it appears that we could create a version for Harmony.  The only potential problem is for the source location since Harmony has src in a number of files, not a single zip.  I'll create a .ee and let you know.
Comment 6 Andrew Niefer CLA 2008-01-08 11:59:59 EST
Created attachment 86404 [details]
harmony.ee

(In reply to comment #5)
> The only potential problem is for the source location
> since Harmony has src in a number of files, not a single zip.  

The bootclasspath is also a number of files, and the final ee.bootclasspath is quite long.  This is a problem if you try to use the resulting .ee file to launch the harmony vm using the eclipse launcher (eclipse -vm harmony.ee) because of bug 214635.

However, this does not affect debug since it doesn't use the eclipse launcher.  I was able to successfully launch a debug session using the attached harmony.ee file which was written to be placed in the harmony bin directory.

One thing I found was the need for quotes in any property containing spaces because these properties end up being passed in as vm args and the spaces are not escaped by debug.
Comment 7 Darin Wright CLA 2008-02-11 12:41:36 EST
(In reply to comment #5)
> Just looking at the wiki page description it appears that we could create a
> version for Harmony.  The only potential problem is for the source location
> since Harmony has src in a number of files, not a single zip.  I'll create a
> .ee and let you know.

FYI - We added support for multiple source archives, but it will likely be modified again (@see bug 217930 and bug 214650).
Comment 8 Darin Wright CLA 2008-04-28 17:26:48 EDT
Feature freeze is upon us, marking assigned for future consideration.