I want Grizzly to serve static files from a .jar that contains a JAX-RS application, Grizzly and all other libraries. I use org.glassfish.grizzly.http.server.StaticHttpHandler to serve static files.
public class Main {
But it only works if I run the application with my IDE. If I pack .jar and run it, static files will not be found.
Is it possible to serve static files from .jar with grizzly StaticHttpHandler ? And How?
source share