diff --git a/README.markdown b/README.markdown
index 6abe590..a62474e 100644
--- a/README.markdown
+++ b/README.markdown
@@ -16,7 +16,26 @@ Groovy shell server uses `groovysh` API inside, so all features of `groovysh` (a
Installation
------------
-Just include following dependency in your `pom.xml`:
+### Java 21+
+
+Current versions of the library require JDK 21 or higher. Include the following dependency in your `pom.xml`:
+
+
+
+ jitpack.io
+ https://jitpack.io
+
+
+
+
+ com.github.farpost
+ groovy-shell-server
+ 2.2.6-jdk21
+
+
+### Java 8 / Legacy
+
+If you are running on an older JVM (Java 8 - 17), please use the `2.2.x` releases (e.g., `2.2.1`). These versions are stable but do not include features requiring newer JDKs.
me.bazhenov.groovy-shell
diff --git a/groovy-shell-server/pom.xml b/groovy-shell-server/pom.xml
index 73e9340..c85817b 100644
--- a/groovy-shell-server/pom.xml
+++ b/groovy-shell-server/pom.xml
@@ -7,7 +7,7 @@
me.bazhenov.groovy-shellgroovy-shell-parent
- 2.2.4-SNAPSHOT
+ 2.2.6-jdk21
diff --git a/groovy-shell-server/src/main/java/me/bazhenov/groovysh/GroovyShellCommand.java b/groovy-shell-server/src/main/java/me/bazhenov/groovysh/GroovyShellCommand.java
index 3716bf7..00da3a7 100644
--- a/groovy-shell-server/src/main/java/me/bazhenov/groovysh/GroovyShellCommand.java
+++ b/groovy-shell-server/src/main/java/me/bazhenov/groovysh/GroovyShellCommand.java
@@ -70,7 +70,7 @@ public void start(ChannelSession session, Environment env) throws IOException {
IO io = new IO(in, out, err);
io.setVerbosity(DEBUG);
- Groovysh shell = new Groovysh(createBinding(bindings, out, err), io);
+ Groovysh shell = new Groovysh(this.getClass().getClassLoader(), createBinding(bindings, out, err), io);
shell.setErrorHook(new Closure