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.
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
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'
Go to your Java class, click Ctrl+F11 automatically your JAVA Program will run.