Getting Java exception while running masking job from command line
search cancel

Getting Java exception while running masking job from command line

book

Article ID: 385407

calendar_today

Updated On: 01-07-2025

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

We are using the batch file generated by FDM tool to run the jobs parallelly from command prompt. When we run the masking job getting below java error.

"Error: LinkageError occurred while loading main class com.grid_tools.products.datamasker.Datamasker
        java.lang.UnsupportedClassVersionError: com/grid_tools/products/datamasker/Datamasker has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0"

 

Environment

TDM version 4.11

FDM version 4.11

Cause

This error is due to Java version mis-match. Run java -version from command line returned below result:

Java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)

the java version shown as 1.8.0. But FastDataMasker uses OpenJDK version 17.0.9

Resolution

To use the Java version used by FDM component, from command prompt go to the path <FDM_HOME>\jre\bin and execute the masking job 

For Ex:

  Go to the path "C:\Program Files\Grid-Tools\FastDataMasker-4.11.68.0 2\jre\bin" and exeucte the batch file.