PROBLEM:
When a user launches ENVI+IDL, he/she receives code 13 error and the application exits.
SOLUTION:
To fix this issue, please follow these steps:
- Locate your Java installation folder. For example, the paths for Java 8 Update 151 should be the following for Java 32-bit version
C:\Program Files (x86)\Java\jre1.8.0_151\bin
and Java 64-bit versionC:\Program Files\Java\jre1.8.0_151\bin
-
Locate the shortcuts for ENVI+IDL programs (both 32 and 64-bit)
- For each shortcut, add the flag
–vm
in the target file and within double quotes “”, add the Java path. For example:
-vm "C:\Program Files (x86)\Java\jre1.8.0_151\bin"
- Launch your application now. You should be able to use ENVI successfully.
CAUSE:
ENVI+IDL is known for having an issue with Java when launching it on a Desktop. The fix is to force ENVI+IDL to launch a Java virtual machine (JVM) then start the IDL component.