OpenSourcePhysics / tracker

Video analysis and modeling tool built on the Open Source Physics framework
GNU General Public License v3.0
206 stars 52 forks source link

NullPointerException thrown when using tracker jar with Xuggle on linux #41

Open achjaj opened 3 years ago

achjaj commented 3 years ago

I downloaded tracker-6.0.1.jar file from the tracker website and when I run it without the Xuggle libraries present, the application starts fine,. However, if I place the tracker jar next to an appropriate library I get the following exception:

Exception in thread "Thread-2" java.lang.NullPointerException
        at org.opensourcephysics.cabrillo.tracker.deploy.TrackerStarter.findBundledVMs(TrackerStarter.java:603)
        at org.opensourcephysics.cabrillo.tracker.deploy.TrackerStarter.loadPreferences(TrackerStarter.java:792)
        at org.opensourcephysics.cabrillo.tracker.deploy.TrackerStarter.launchTracker(TrackerStarter.java:293)
        at org.opensourcephysics.cabrillo.tracker.deploy.TrackerStarter$3.run(TrackerStarter.java:356)
        at java.lang.Thread.run(Thread.java:748)

It looks like it tries to use some bundled jre, but it is just the tracker jar file, so there is no bundled jre. I think that in this case there should be some popup dialog where user can provide path to his system jre.