Error When Running Java Runtime in LabVIEW

Updated Mar 23, 2023

Reported In

Software

  • LabVIEW

Other

Java Runtime Environment (JRE)

Issue Details

When I run third party Java Runtime in LabVIEW I am getting the following error message in command prompt:

'𝚓𝚊𝚟𝚊' 𝚒𝚜 𝚗𝚘𝚝 𝚊 𝚛𝚎𝚌𝚘𝚐𝚗𝚒𝚣𝚎𝚍 𝚊𝚜 𝚊𝚗 𝚒𝚗𝚝𝚎𝚛𝚗𝚊𝚕 𝚘𝚛 𝚎𝚡𝚝𝚎𝚛𝚗𝚊𝚕 𝚌𝚘𝚖𝚖𝚊𝚗𝚍, 𝚘𝚙𝚎𝚛𝚊𝚋𝚕𝚎 𝚙𝚛𝚘𝚐𝚛𝚊𝚖 𝚘𝚛 𝚋𝚊𝚝𝚌𝚑 𝚏𝚒𝚕𝚎.

Solution

This problem can occur because Java Runtime Environment (JRE) is not able to access the runtime program and execute it. Please refer to some steps below to resolve this issue.
Β 
  • Try re-installing Java. If Java is not installed, please download Java from this link. One way to check if Java is installed properly is to see if Java icons populate on Java related programs.
  • Close LabVIEW and re-launch LabVIEW as an administrator.Β 
  • JRE needs administrator privilege to access file directories while executing. Therefore, please save the runtime program and all related files at 𝙲:\ directory. This will prompt the user to provide administrator privilege before the runtime program execute.
  • Add Java Development Kit (JDK) permanently to windows. This can be done by launchingΒ Edit the System Environment Variables andΒ proceed to Environment Variables. Then, under User Variables for <username>, click on Path and then click Edit. Select New and add 𝙲:\𝙿𝚛𝚘𝚐𝚛𝚊𝚖 𝙵𝚒𝚕𝚎𝚜\𝙹𝚊𝚟𝚊\𝚓𝚛𝚎𝟷.𝟾.0_𝟹𝟹\𝚋𝚒𝚗Β directory. Please refer the picture below for more info.Java_Environment Variable 1.png