Error occurred during initialization of VM when opening Katalon project from OneDrive

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. :slight_smile:

If other community members or Katalon officials have the explanation and/or solution, I am all ears.

1 Like

OneDrive?

I remember I got a lot of difficulties when I tried to place my katalon projects on OneDrive. The folder ā€œOneDriveā€ is an alias to another physical folder which is magically synched with a cloud-based storage. It seemed that Katalon does not understand the File System of OneDrive. I don’t know what sort of black magic can bring Katalon Studio fully operational on OneDrive.

I would recommend you NOT to locate your katalon projects on the ā€œOneDriveā€ folder.

3 Likes