configuring eclipse for graal
Vasanth.Venkatachalam at amd.com
Wed Mar 6 14:41:47 PST 2013
Thanks. In my eclipse project explorer window, the top level directories I see include agent/, graal/, src/ , test/, and visualizer/.
Eclipse tries to build everything under these directories. Is this what I need, or should I remove some of these directories from the build path?
My goal is to be able to build graal and single step through its execution.
From: Thomas Wuerthinger [mailto:thomas.wuerthinger at oracle.com]
Sent: Wednesday, March 06, 2013 4:31 PM
To: Venkatachalam, Vasanth
Cc: Doug Simon @ Oracle (doug.simon at oracle.com); graal-dev at openjdk.java.net
Subject: Re: configuring eclipse for graal
It is easier to put your workspace on some other directory. And I think you are missing running the script "./mx.sh ideinit" in the Graal root directory.
Hope this helps, thomas
On Mar 6, 2013, at 11:00 PM, "Venkatachalam, Vasanth" <Vasanth.Venkatachalam at amd.com> wrote:
> Doug, I'm following your instructions and wanted to makes sure I'm on the right track here.
> I've cloned the graal repository into a directory: /home/tester/mygraal/graal. In other words, this directory contains the subfolders: agent/, build/, graal/, hotspot/ etc which were checked out of mercurial.
> I set my Eclipse workspace to /home/tester/mygraal/graal
> I went to File->Import->ProjectsfromLocalMercurialRepository and
> browsed for the workspace /home/tester/mygraal/graal
> When I selected this, only one Project appeared in the Projects window, namely graal (/home/tester/mygraal/graal). Is this what I should be seeing?
> If I hit Finish, I get an Invalid project description error, /home/tester/mygraal/graal overlaps the workspace location /home/tester/mygraal/graal.
> Creating and Importing the Maxine Eclipse projects Run mx ideinit to
> create the Eclipse (and NetBeans) project configurations for all the Java projects in the Graal workspace.
> You use the Import Wizard to import the created/updated projects.
>> From the main menu bar, select File > Import... to open the Import Wizard.
> Select Mercurial > Projects from Local Mercurial Repository and click Next.
> Click the Browse... button to locate the Graal workspace.
> Under Projects select all the projects.
> Click Finish to complete the import.
> -----Original Message-----
> From: graal-dev-bounces at openjdk.java.net
> [mailto:graal-dev-bounces at openjdk.java.net] On Behalf Of Doug Simon @
> Sent: Wednesday, March 06, 2013 2:35 PM
> To: graal-dev at openjdk.java.net
> Subject: Re: configuring eclipse for graal
> On Mar 6, 2013, at 8:35 PM, Michael Haupt <michael.haupt at oracle.com> wrote:
>> Am 06.03.2013 um 20:20 schrieb "Venkatachalam, Vasanth" <Vasanth.Venkatachalam at amd.com>:
>>> Following the instructions in https://wikis.oracle.com/display/OpenJDK/Instructions I ran "mx ideinit".
>>> However, I don't see a .project file generated in the top directory. I created a new Eclipse project and imported all the directories at the top level, but the integration wasn't as seamless as I expected.
>>> It looks like I may have to configure Eclipse to pick up on dependencies that have been manually specified in the mx/projects file.
>>> Can someone explain the proper way to configure the Eclipse environment? I looked around for additional documentation but the above link was all I found.
>> generally, running mx ideinit (or mx eclipseinit) is enough to set up all .project files you need. There is no .project file in the top-level directory; they are some levels below (in the graal/com.oracle..... directories, one per project).
>> You do not need to create an Eclipse project and import other projects into that. Please do this:
>> * clone the Graal repository into, say, ~/graal
>> * start Eclipse and choose that directory as the workspace
>> * File -> Import ... -> Mercurial -> Projects from local repository
>> * select the ~/graal directory
>> * select all projects that appear
> I've put these instructions into the wiki:
More information about the graal-dev