Hi,
some feedback on what I am doing wrong would be helpful. I have a run description of my project
1. I runt the run descriptor successfully
2. Now, I want to deploy somewhere else
3. I click the Export button on the run descriptor dialog and export to folder
flangels-MacBook-Pro:bndtest flangel$ ls -la
total 1152
drwxr-xr-x 5 flangel staff 170 Apr 27 13:36 .
drwxr-xr-x+ 107 flangel staff 3638 Apr 27 14:06 ..
drwxr-xr-x 26 flangel staff 884 Apr 27 13:36 bundles
-rw-r--r-- 1 flangel staff 584278 Apr 27 13:36 launch.jar
-rw-r--r-- 1 flangel staff 1233 Apr 27 13:36 launch.properties
4. Now I run the launch.jar
flangels-MacBook-Pro:bndtest flangel$ sudo java -jar ./launch.jar ./launch.properties
Password:
java.lang.NullPointerException
at java.util.StringTokenizer.<init>(StringTokenizer.java:199)
at java.util.StringTokenizer.<init>(StringTokenizer.java:221)
at aQute.launcher.constants.LauncherConstants.split(LauncherConstants.java:129)
at aQute.launcher.constants.LauncherConstants.<init>(LauncherConstants.java:114)
at aQute.launcher.Launcher.<init>(Launcher.java:155)
at aQute.launcher.Launcher.main(Launcher.java:88)
at launch.main(launch.java:13)
flangels-MacBook-Pro:bndtest flangel$
5. Decompiling the launch.jar reveals this line to be the culprit.
I assume launch.bundles is not set... Any idea why ? Do I have to set this ?
public LauncherConstants(Properties p)
{
this.services = Boolean.valueOf(p.getProperty("launch.services")).booleanValue();
if (p.getProperty("launch.storage.dir") != null)
this.storageDir = new File(p.getProperty("launch.storage.dir"));
this.noreferences = Boolean.valueOf(p.getProperty("launch.noreferences")).booleanValue();
this.keep = Boolean.valueOf(p.getProperty("launch.keep")).booleanValue();
this.runbundles.addAll(split(p.getProperty("launch.bundles"), ","));
this.systemPackages = p.getProperty("launch.system.packages");
this.systemCapabilities = p.getProperty("launch.system.capabilities");
thanks a bunch
Frank
--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Peter Kriens
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "bndtools-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bndtools-users/BH6q8sqXgyU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bndtools-users+unsubscribe@googlegroups.com.