5

I'd like to run my Groovy project in Eclipse using a shortcut (CTRL+F11). The trouble is, every time I do so I get a "Select a way to run " dialog, which gives me the choice between Groovy Console, Groovy Script, Java Application.

I've already set a Run Configuration to use Groovy Script, and if I click that Run Configuration under the Run As menu, it just runs.

How can I get my project to execute from a keyboard shortcut without that dialog popping up? I can't imagine ever selecting one of the other options.

Steve
  • 4,457
  • 12
  • 48
  • 89

2 Answers2

1

I've never been able to get a satisfactory keyboard shortcut for Groovy script runs out of ctrl-F11. Instead I use alt-shift-X and then press G when the menu appears.

For debugging I use alt-shift-D, then G.

Both are two-stroke, rather than one-stroke, solutions, but neither one forces me to use the mouse or the arrow keys.

Rohit Gupta
  • 4,022
  • 20
  • 31
  • 41
BalRog
  • 3,216
  • 23
  • 30
  • This is what I do as well, but for some explained reason it has stopped working. :( – slim Feb 24 '15 at 16:16
-1

Under Project>Properties>Java Build Path and then click on Java SE, what ever it may be, click finish.

On the off chance that you deleted your java system library you can o pick up a new one... http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

kpie
  • 9,588
  • 5
  • 28
  • 50
  • I apologize if I'm misunderstanding your answer. This sounds more along the lines of something I'd do if my project wasn't running at all. – Steve Nov 24 '14 at 20:27