Bug 94650 DBCS3.1: JUnit example build error
Driver : Eclipse 3.1 I20050509-2010 Linux GTK, and example JVM : IBM 1.4.2 SR1a Platform : RHEL 4 WS ja_JP.UTF-8 locale Steps 1. File > New > Example.., select Example Project -JUnit, click Next 2. use default project name "JUnit", click Finish Result following error is shown at Problems view The project was not built since the source file /JUnit/junit/framework/TestSuite.java could not be read I tried to open it and got This file is unreadable using the "UTF-8" character encoding
org.eclipse.jdt.ui.examples.projects/examples/org/eclipse/jdt/internal/ui/exampleprojects/ExampleProjectCreationOperation.java
}
	}
	
	private IPluginDescriptor getContributingPlugin(IConfigurationElement configurationElement) {
		Object parent= configurationElement;
		while(parent != null) {
			if (parent instanceof IExtension)
				return ((IExtension)parent).getDeclaringPluginDescriptor();
			parent= ((IConfigurationElement)parent).getParent();
		}
		return null;
	}
	private ZipFile getZipFileFromPluginDir(String pluginRelativePath, IPluginDescriptor pluginDescriptor) throws CoreException {
		try {
			URL starterURL= new URL(pluginDescriptor.getInstallURL(), pluginRelativePath);
			return new ZipFile(Platform.asLocalURL(starterURL).getFile());
		} catch (IOException e) {
			String message= pluginRelativePath + ": " + e.getMessage(); 
			Status status= new Status(IStatus.ERROR, ExampleProjectsPlugin.getPluginId(), IStatus.ERROR, message, e);
			throw new CoreException(status);
		}
	}
	
	private void importFilesFromZip(ZipFile srcZipFile, IPath destPath, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {		
		ZipFileStructureProvider structureProvider=	new ZipFileStructureProvider(srcZipFile);
		ImportOperation op= new ImportOperation(destPath, structureProvider.getRoot(), structureProvider, fOverwriteQuery);
		op.run(monitor);
	}
}