Bug 191004 [Smoke][AS4] Can not debug [0001]
Description: Can not debug. Build number: 2.2.0.v20070605-0630 Steps to reproduce: 1. new a Java project: create a Java class using BIRT's scripting API. 2. new a report project, create a report, and add a Label element, map the Java class to the Label via event handler panel in property editor, and preview. 3. open debug launcher dialog from toolbars. 4. create a new report debug profile. 5. select Report Projectsand the Java Projects, click on Debug. Expected result: The preview and debug can be done. Actual result: Exception is thrown out when preview and debug. Error log: See the screenshot.
UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/internal/ui/launcher/util/WorkspaceClassPathFinder.java
/*******************************************************************************
 * Copyright (c) 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.debug.internal.ui.launcher.util;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import com.ibm.icu.util.StringTokenizer;
import org.eclipse.birt.report.viewer.utilities.IWorkspaceClasspathFinder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
/**
 * Class used to find a classpath based on projects or workspace
 * 
 */
public class WorkspaceClassPathFinder implements IWorkspaceClasspathFinder