http://issues.apache.org/jira/browse/MAPREDUCE-1262

src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/launch/HadoopApplicationLaunchShortcut.java

@@ -32,7 +32,7 @@
-import org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut;
+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut;

@@ -65,6 +65,10 @@
ILaunchConfiguration iConf =
super.findLaunchConfiguration(type, configType);

+    if(iConf == null){
+      return null;
+    }

  • ILaunchConfigurationWorkingCopy iConfWC;
    try {
    /*

cd  src/contrib/eclipse-plugin/

ant jar -Declipse.home=/usr/local/eclipse   ///usr/local/eclipse your eclipse home