Hello there, I saw old topics on the forum mentioning this yet marked as solved whereas no official reply from Katalon dev team.
My company recently upgraded our machines to Windows 11 and also decided to move lots of local user data / folders into OneDrive meaning files and fodlers located in Documents for example, which is where I clone my Katalon projects, where moved from C:\Users\myname\Documents to C:\Users\myname\OneDrive\Documents
When reopening katalon projects from there, I could still edit scripts and save, but could not run scripts as I was getting this error:
Error occurred during initialization of VM
java.lang.Error: groovy.lang.GroovyClassLoader
at java.lang.ClassLoader.initSystemClassLoader(java.base@17.0.14/ClassLoader.java:2000)
at java.lang.System.initPhase3(java.base@17.0.14/System.java:2263)
Caused by: java.lang.ClassNotFoundException: groovy.lang.GroovyClassLoader
at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@17.0.14/BuiltinClassLoader.java:641)
at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@17.0.14/ClassLoaders.java:188)
at java.lang.ClassLoader.loadClass(java.base@17.0.14/ClassLoader.java:525)
at java.lang.Class.forName0(java.base@17.0.14/Native Method)
at java.lang.Class.forName(java.base@17.0.14/Class.java:467)
at java.lang.ClassLoader.initSystemClassLoader(java.base@17.0.14/ClassLoader.java:1986)
at java.lang.System.initPhase3(java.base@17.0.14/System.java:2263)
I tried lots of things like deleting all traces of Katalon (installed in C:\Users\myname\.katalon) and reinstall from scratch, updating launch arguments of Katalon project settings, updating my JAVA_HOME environment and other terrible dev stuff, yet nothing worked, even when starting a brand new project from scratch with a simple WebUI.openBrowser(āhttps://www.google.comā) script I had same issueā¦
Everything worked back again when I simply copied my katalon project folder back into C:\Users\myname\Documents and opened it from there using Katalon. I still donāt understand why and feel ashamed about it, yet it worksā¦
In case other people are in the same situation, they can find a workaround here. ![]()
If other community members or Katalon officials have the explanation and/or solution, I am all ears.