The Gradle generated shell script creates a java -cp command with an explicit classpath which seems to fix the issue. But, when running directly as java -jar, it looks like Vaadin does not load VaadinAppShellInitializer and thus the Lookup.class is not placed into VaadinContext. That then ...