1. Download and install the SUPERScript plugin ->
Jedit Plugin Central
2. Modify /Startup/startup.bsh
Then add the following code:
Org.apache.bsf.bsfmanager.registerscriptingengengine
"Groovy", "Org.codehaus.groovy.bsf.groovyEngine", New String [] {"Groovy", "GV"}
); 3. Copy Groovy * .jar and asm * .jar to the JAR folder
4. Go to Plugin Options ..., select SuperScript, you can see that Groovy is already in the pull box.
5. Open one or create a Groovy script
6. Click Plugins-> SuperScript, select the Groovy scripting language, then click Execute Script to see the effect
Groovy's official statement