How to actually launch Ghidra after setting it up inside Eclipse? #7043
-
I'm not a Java guy and Eclipse is about the least intuitive tool I've ever used but this is probably incredibly obvious to everyone else, which might be why it's not explained in the instructions: I follow these steps just fine:
But when I get to this step I don't know what I'm supposed to do:
There's nothing in "Run As", but there is a Ghidra icon. But clicking on that fails without much hint what I'm doing wrong: Going into the configurations makes it look like several are there, so I might think it's set up but it doesn't seem to be. Am I supposed to change the "Project" or "Main class" here? Clicking on the Project's "Browse" button brings up a huge listview of... stuff? None have an obvious name like "Ghidra". Am I supposed to choose one of these? Sorry but I'm totally lost. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
@hippietrail From the same Import window, type “Launch” in the Search field and use that entry to import Launch Configuration’s. “Ghidra” should be among them. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Strange I'm not sure what I did that fixed it. First I tried to follow d-millar's advice by going back to "File/Import..." and typing "Launch" in the "Select an import wizard field", which showed this: But selecting it and clicking on "Next" seemed to do nothing and reach a dead end with an empty "Import Launch Configurations" browser window: So then I tried to follow Wall-AF's advice but when I click on the Debug or Run icons something has changed and the menus are now populated: And from here it "just works" and I don't have to keep following Wall-AF's guide. It all feels very nondeterministic. My best guess is that something happened silently in the background just by going to the Import Launch Configurations? Thank you both for your help. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Apologies - I should have been more specific, although all of @Wall-AF's comments are accurate and on-point. Just for completeness, here is what I normally do: (1) File->Import (brings up "Select / Choose import wizard") This should give you 8 config, accessible from the Run or Debug pull-downs: GhidraDev, Launch Runtime Eclipse, Sleigh, PyGhidra Interpreter Debug, PyGhidra GUI Debug, Headless, JShell, and Ghidra (the last being the one I normally default to). I think the key step you missed above is (3), browsing to ghidra's root directory. |
Beta Was this translation helpful? Give feedback.
Apologies - I should have been more specific, although all of @Wall-AF's comments are accurate and on-point. Just for completeness, here is what I normally do:
(1) File->Import (brings up "Select / Choose import wizard")
(2) Either enter "Launch" in the Select field or navigate to "Run/Debug"->"Launch Configurations". Select that, hit "Next".
(3) Navigate to "ghidra" by typing in the path or using "Browse". Select the box next to "ghidra" in the tree below. Hit Finish.
This should give you 8 config, accessible from the Run or Debug pull-downs: GhidraDev, Launch Runtime Eclipse, Sleigh, PyGhidra Interpreter Debug, PyGhidra GUI Debug, Headless, JShell, and Ghidra (the last being the one I n…