Question

I usually run java classes (with main() ) with keyboard shortcuts Alt+⇧Shift+X, J in my Eclipse Indigo. I recently I started using Eclipse Juno and it seems to rather not work. Is this a bug in eclipse juno?

My Eclipse build number is:

Version: Juno Service Release 2
Build id: 20130225-0426

Am I doing something wrong here or is this an Eclipse bug?

===================================

Updated with my eclipse Juno key mappings screen shot

My Eclipse Juno Key Mappings List

Was it helpful?

Solution

This indeed is a bug in Eclipse 4. Try this Alt + Shift + X Esc J

Press Alt + Shift + X when the popup appears hit Esc and then quickly follow it up with J. This works for me.

I will find the bug raised in eclipse and attach the link here.

OTHER TIPS

As suggested here, you need to set the 'when' binding of the shortcut to 'In Dialog and Windows'

Window > Preferences > General > Keys, then filtered for 'Shift+alt+x' then for each command I changed When field from 'In windows' to 'In dialogs and windows'. The same for 'shift+alt+d'

  1. click on "perspective" under "Window"
  2. Expand "general" and look for "keys"
  3. This will list all the key bindings for eclipse commands
  4. Search for "Run Java Application" under "Commands" column.
  5. The key binding might be set to something else rather than Alt+Shift+X,J.
  6. You can set the key binding to Alt+Shift+X,J or any other combination which you prefer.

Go to your Java class, click Ctrl+F11 automatically your JAVA Program will run.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top