No script runtime was found in the classpath: class 'kotlin.script.templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies.kotlin(MISSING_SCRIPT_STANDARD_TEMPLATE)
See original GitHub issueDescribe the bug
All lines in build.gradle.kts
have this error:
No script runtime was found in the classpath: class 'kotlin.script.templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies.kotlin(MISSING_SCRIPT_STANDARD_TEMPLATE)
Extension version 0.2.11
Additional context
gradle 0.6.1
kotlin jvm plugin 1.3.61
Used through Remote SSH on a remote Linux server
gradle run
from the command line on the server runs the app fine
Let me know what additional info I should provide to help troubleshooting.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:18
Top Results From Across the Web
No script runtime was found in the classpath: class 'kotlin ...
templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies.kotlin(MISSING_SCRIPT_STANDARD_TEMPLATE) # ...
Read more >Unable to run Kotlin scratch file - intellij idea - Stack Overflow
no script runtime was found in the classpath: class kotline.script.templat.standard.scriptTemplatewithArgs not fpund. please add kotling.script, ...
Read more >Build Project fails on gradle buildSrc script plugin, no runtime ...
templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies. IntelliJ IDEA 2020.3 (Ultimate Edition)
Read more >Possible kts bug - Support - Kotlin Discussions
Error:(3, 1) Kotlin: Cannot access script base class 'kotlin.script.templates.standard.ScriptTemplateWithArgs'. Check your module classpath ...
Read more >No script runtime was found in the classpath - Bountysource
ScriptTemplateWithArgs ' not found. Please add kotlin-script-runtime.jar to the module dependencies.kotlin(MISSING_SCRIPT_STANDARD_TEMPLATE)
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Anybody found solution?
This can happen when your project’s classpath doesn’t contain the kotlin-script-runtime jar.
In my case, my project’s pom.xml was incorrect and it didn’t resolve and so the jar was missing from the dependency tree.
Once I fixed pom.xml it became visible in the Maven window:
I then went to Command Palette - Kotlin: Restart the Language Server to resolve the issue.