Bug 107826 Serial version quick fix improvements [quick fix]
- Do not put everything on the user class path - Use only the standard output for result and error messages - Remove waitFor() - Read from stream until -1
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/SerialVersionLaunchConfigurationDelegate.java
}
	}
	
	public static final String ERROR_POSTFIX= "__SerialVersionComputationErrorPostfix__"; 
	
	public static final String ERROR_PREFIX= "__SerialVersionComputationErrorPrefix__"; 
	
	private static final String[] fgExecutableLocations= { "bin" + File.separatorChar + "javaw", "bin" + File.separatorChar + "javaw.exe", "jre" + File.separatorChar + "bin" + File.separatorChar + "javaw", "jre" + File.separatorChar + "bin" + File.separatorChar + "javaw.exe", "bin" + File.separatorChar + "java", "bin" + File.separatorChar + "java.exe", "jre" + File.separatorChar + "bin" + File.separatorChar + "java", "jre" + File.separatorChar + "bin" + File.separatorChar + "java.exe"}; 
	
	public static final String RESULT_POSTFIX= "__SerialVersionComputationResultPostfix__"; 
	
	public static final String RESULT_PREFIX= "__SerialVersionComputationResultPrefix__"; 
	/**
	 * Attempts to find the java executable in the specified location.
	 * 
	 * @param location the location of the vm installation
	 * @return the corresponding java executable, or <code>null</code>
	 */
	public static File findJavaExecutable(final File location) {
		Assert.isNotNull(location);
		File file= null;
		for (int index= 0; index < fgExecutableLocations.length; index++) {
			file= new File(location, fgExecutableLocations[index]);
			if (file.isFile())
				return file;
		}
		return null;
	}
	
	protected String fErrorMessage= null;