this can be done in the demo app, but not in the library. the library jar must be portable to 'regular' java apps as well