"UserErrorJreNotFound" error message when you run a copy activity to Azure

Applies to: Data Factory


When you try to copy content to Microsoft Azure by using a Java-based tool or program (for example, copying ORC or Parquet format files), you receive an error message that resembles the following: 


This issue occurs for either of the following reasons:

  • Java Runtime Environment (JRE) isn't installed correctly on your Integration Runtime server.
  • Your Integration Runtime server lacks the required dependency for JRE.

By default, Integration Runtime resolves the JRE path by using registry entries. Those entries should be automatically set during JRE installation.


Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur.

To fix this issue, follow these steps to verify the status of the JRE installation:

  1. Make sure that Integration Runtime (Diahost.exe) and JRE are installed on the same platform. Check the following conditions:
    • 64-bit JRE for 64-bit ADF Integration Runtime should be installed in the following folder:

        C:\Program Files\Java\ 

      Note The folder is
      not C:\Program Files (x86)\Java\.

    • JRE 7 and JRE 8 are both compatible for this copy activity. JRE 6 and versions that are earlier than JRE 6 have not been validated for this use.
  2. Check the registry for the appropriate settings. To do this, follow these steps:
    1. In the Run menu, type Regedit, and then press Enter.
    2. In the navigation pane, locate the following subkey:

      HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment

      In the Details pane, there should be a Current Version entry that shows the JRE version
      (for example, 1.8). 

      Java Runtime Environment version in registry

    3. In the navigation pane, locate a subkey that is an exact match for the version (for example 1.8) under the JRE folder. In the details pane, there should be a JavaHome entry. The value of this entry is the JRE installation path.

      Java Home Entry

  3. Locate the bin\server folder in the following path:

    C:\Program Files\Java\jre1.8.0_74

    Bin folder of JRE
  4. Check whether this folder contains a jvm.dll file. If it does not, check for the file in the bin\client folder.
    jvm.dll file location