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

Search
Feedback

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.

Graph-Browser

About this article
Last change 2017-02-24
Topics ServerStructr 2.0