Hybris, ant clean all command failes with message Error occurred during initialization of VM

377 Views Asked by At

I'm getting this error while trying to build my Hybris project via ant clean all && ./hybrisserver.sh debug:

Error occurred during initialization of VM
java.lang.Error: Could not create SecurityManager
    at java.lang.System.initPhase3([email protected]/System.java:2065)
    Caused by: java.lang.ClassNotFoundException: allow
    at jdk.internal.loader.BuiltinClassLoader.loadClass([email protected]/BuiltinClassLoader.java:581)
    at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass([email protected]/ClassLoaders.java:178)
    at java.lang.ClassLoader.loadClass([email protected]/ClassLoader.java:522)
    at java.lang.Class.forName0([email protected]/Native Method)
    at java.lang.Class.forName([email protected]/Class.java:398)
    at java.lang.System.initPhase3([email protected]/System.java:2050)

Maybe I put a typo somewhere (see Caused by: java.lang.ClassNotFoundException: allow ) but I can't find anything and my repo's up to date with master which is correctly working, Is there a way to find the problem?

Note: i have Ubuntu 20.04.5 LTS Thank you

1

There are 1 best solutions below

0
Riccardo On

Solution was simple: Somehow I lost my setantenv.sh configuration, i had to re-run it in /platform