summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java b/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java
index 93f1b01206..95d733aba2 100644
--- a/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java
+++ b/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java
@@ -626,7 +626,13 @@ final class NodeLauncherUtil {
Set<URL> jarURLs = new HashSet<URL>();
// Determine the path to the launcher class
- URI uri = URI.create(codeLocation(NodeLauncherUtil.class));
+ URI uri;
+ try {
+ uri = URI.create(codeLocation(NodeLauncherUtil.class));
+ } catch (Exception e) {
+ // FIXME
+ uri = URI.create("");
+ }
// If the launcher class is in a JAR, add all runtime JARs from directory containing
// that JAR (e.g. the Tuscany modules directory) as well as the ../modules and