Embedding in a Java app - example

Had the similar problem with nimbusd library, and reverted back to the org.jose4 library and I seem to be getting further with embedded setup