I am getting Failed to invoke procedure `gds.graph.create`: Caused by: java.lang.NoClassDefFoundError: org/neo4j/kernel/extension/KernelExtensionFactory error on neo4j 4.0.4 enterprise edition

Which version of the GDS library are you using?

I am using gds 1.0.1.

Can you try using 1.2.1. I don't think 1.0.1 works with 4.0

https://s3-eu-west-1.amazonaws.com/com.neo4j.graphalgorithms.dist/graph-data-science/neo4j-graph-data-science-1.2.1-standalone.zip