Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java')
-rw-r--r--bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
index d013ff7c2..034aa4878 100644
--- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
+++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
@@ -969,17 +969,17 @@ public class Main {
* @param base the base location
* @exception MalformedURLException if a problem occurs computing the class path
*/
- protected URL[] getBootPath(String base) throws IOException {
+ private URL[] getBootPath(String base) throws IOException {
URL url = null;
if (base != null) {
url = buildURL(base, true);
} else {
// search in the root location
url = getInstallLocation();
- String path = new File(url.getFile(), "plugins").toString(); //$NON-NLS-1$
- path = searchFor(framework, path);
+ String pluginsLocation = new File(url.getFile(), "plugins").toString(); //$NON-NLS-1$
+ String path = searchFor(framework, pluginsLocation);
if (path == null)
- throw new RuntimeException("Could not find framework"); //$NON-NLS-1$
+ throw new FileNotFoundException(String.format("Could not find framework under %s", pluginsLocation)); //$NON-NLS-1$
if (url.getProtocol().equals("file")) //$NON-NLS-1$
url = new File(path).toURL();
else

Back to the top