You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

java.lang.NoClassDefFoundError: Could not initialize class org.structr.schema.compiler.NodeExtender

If you encounter the below error message, it is verly likely that you tried to run Structr with a JRE (Java Runtime Environment) instead of the JDK (Java Development Kit).

java.lang.NoClassDefFoundError: Could not initialize class org.structr.schema.compiler.NodeExtender
        at org.structr.rest.service.StructrHttpServiceConfig.loadClass(StructrHttpServiceConfig.java:152)
        at org.structr.rest.service.StructrHttpServiceConfig.initializeFromProperties(StructrHttpServiceConfig.java:87)
        at org.structr.rest.service.HttpService.collectServlets(HttpService.java:608)
        at org.structr.rest.service.HttpService.initialize(HttpService.java:400)
        at org.structr.core.Services.createService(Services.java:549)
        at org.structr.core.Services.initialize(Services.java:324)
        at org.structr.core.Services.initialize(Services.java:296)
        at org.structr.core.Services.getInstance(Services.java:144)
        at org.structr.Server.main(Server.java:36)
Jan 31, 2016 3:27:07 PM org.structr.core.Services createService
SEVERE: Vital service HttpService failed to start: Could not initialize class org.structr.schema.compiler.NodeExtender. Aborting

Solution

Uninstall the Java Runtime Environment (JRE) and install the Java Development Kit (JDK).

Explanation

Structr makes heavy use of the internal Java Compiler of the JDK at runtime. It is needed to compile the database schema into Java classes, so Structr cannot be run without it.

Search results for "java.lang.NoClassDefFoundError: Could not initialize class org.structr.schema.compiler.NodeExtender"

We could not find anything matching "java.lang.NoClassDefFoundError: Could not initialize class org.structr.schema.compiler.NodeExtender" in our documentation. Please rephrase your search.

You can also ask your questions in the Structr Google Group or create a free account in the Structr Support Portal.
Click here to send feedback to the Structr team.