Skip to content

Running the Basic Tests on Nuix Java- Baseline Gradle project fails #24

@HarishVembu

Description

@HarishVembu

I followed as per the Readme instructions provided on the GitHub repository page and imported the Gradle project on IntellJ but getting this error message on running BasicTests


Cannot create the global container - the most likely cause for this is that the class path is incorrect
java.lang.IllegalStateException: Cannot create the global container - the most likely cause for this is that the class path is incorrect
at nuix.engine.GlobalContainerFactory.newContainer(SourceFile:52)
at com.nuix.innovation.enginewrapper.NuixEngine.ensureGlobalContainer(NuixEngine.java:554)
at com.nuix.innovation.enginewrapper.NuixEngine.getUtilities(NuixEngine.java:319)
at BasicTests.GetLicenseTryWithResourcesCleanup(BasicTests.java:47)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)


I checked all of the classpath and environment variables settings are as expected. Only AppTest is working as expected.

Screeenshot of System Environment Variables:

Image

Appreciate any of the suggestions/hint to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions