Bug 37249 Export Javadoc does not give any error when the path to javadoc.exe is bogus
Version: 2.1.0 Build id: 200303272130 I had a bogus path to javadoc.exe in Preferences/Java/Javadoc. When I clicked Finish in the Export/Javadoc wizard, nothing happened. I gave up using the feature until today when I ran accross my bad Preference setting. Obviously, the wizard needed to give the user some kind of error message. (FYI, this happened when I upgraded my set up from Sun's 1.4.1_01 to 1.4.1_02.)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavadocPreferencePage.java
javaDocCommentLabel.setLabelText(PreferencesMessages.getString("JavadocPreferencePage.description")); 
		javaDocCommentLabel.doFillIntoGrid(fComposite, 3);
		LayoutUtil.setWidthHint(javaDocCommentLabel.getLabelControl(null), convertWidthInCharsToPixels(80));
		JDocDialogFieldAdapter adapter= new JDocDialogFieldAdapter();
		fJavadocSelection= new StringButtonDialogField(adapter);
		fJavadocSelection.setDialogFieldListener(adapter);
		fJavadocSelection.setLabelText(PreferencesMessages.getString("JavadocPreferencePage.command.label")); 
		fJavadocSelection.setButtonLabel(PreferencesMessages.getString("JavadocPreferencePage.command.button")); 
		fJavadocSelection.doFillIntoGrid(fComposite, 3);
		LayoutUtil.setHorizontalGrabbing(fJavadocSelection.getTextControl(null));
		LayoutUtil.setWidthHint(fJavadocSelection.getTextControl(null), convertWidthInCharsToPixels(10));
		initFields();
		Dialog.applyDialogFont(fComposite);
		return fComposite;
	}
	/*
	 * @see IWorkbenchPreferencePage#init(IWorkbench)
	 */
	public void init(IWorkbench workbench) {
	}
	
	private static void initJavadocCommandDefault(IPreferenceStore store) {
		File file= findJavaDocCommand();
		if (file != null) {
			store.setDefault(PREF_JAVADOC_COMMAND, file.getPath());
		}	
	}
	
	private static File findJavaDocCommand() {
		IVMInstall install= JavaRuntime.getDefaultVMInstall();