java.lang.RuntimeException: java.lang.reflect.InvocationTargetException error during installation

Document ID : KB000103476
Last Modified Date : 26/06/2018
Show Technical Document Details
Issue:
When installing DevTest or any product run into the below error.

An error occurred: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException Error log file: Exception: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.install4j.runtime.installer.Installer.getScreenExecutor(Unknown Source) at com.install4j.runtime.installer.Installer.runInProcess(Unknown Source) at com.install4j.runtime.installer.Installer.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.exe4j.runtime.WinLauncher.main(Unknown Source) at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(Unknown Source) at java.awt.EventQueue.invokeAndWait(Unknown Source) at javax.swing.SwingUtilities.invokeAndWait(Unknown Source) ... 10 more Caused by: java.lang.UnsatisfiedLinkError: com.install4j.runtime.installer.platform.win32.FolderInfo.getPathFromRegistry0(Ljava/lang/String;)Ljava/lang/String; at com.install4j.runtime.installer.platform.win32.FolderInfo.getPathFromRegistry0(Native Method) at com.install4j.runtime.installer.platform.win32.FolderInfo.getProgramFilesDirectory(Unknown Source) at com.install4j.runtime.installer.helper.InstallerUtil.getStandardApplicationsDirectory(Unknown Source) at com.install4j.runtime.installer.config.InstallerConfig.getVariableValue(Unknown Source) at com.install4j.runtime.installer.config.InstallerConfig.getDefaultResolvedInstallationDirectory(Unknown Source) at com.install4j.runtime.installer.config.InstallerConfig.getInitialInstallationDirectory(Unknown Source) at com.install4j.runtime.installer.config.InstallerConfig.getInstallationDirectory(Unknown Source) at com.install4j.runtime.installer.ContextImpl.getInstallationDirectory(Unknown Source) at com.install4j.runtime.installer.InstallerContextImpl.initUpdateInstallation(Unknown Source) at com.install4j.runtime.installer.InstallerContextImpl.(Unknown Source) at com.install4j.runtime.installer.frontend.InstallerWizardScreenExecutor.(Unknown Source) at com.install4j.runtime.installer.Installer$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) System properties: java.runtime.name=Java(TM) SE Runtime Environment exe4j.moduleName=E:\InstaladoresDevTest10\devtest_win_x64.exe exe4j.semaphoreName=Local\e:_instaladoresdevtest10_devtest_win_x64.exe sun.boot.library.path=c:\program files\java\jre1.8.0_101\bin java.vm.version=25.101-b13 java.vm.vendor=Oracle Corporation java.vendor.url=http://java.oracle.com/ java.rmi.server.randomIDs=true exe4j.consoleCodepage=cp0 path.separator=; java.vm.name=Java HotSpot(TM) 64-Bit Server VM file.encoding.pkg=sun.io user.country=US user.script= sun.os.patch.level= install4j.exeDir=E:\InstaladoresDevTest10\ java.vm.specification.name=Java Virtual Machine Specification user.dir=E:\InstaladoresDevTest10 java.runtime.version=1.8.0_101-b13 java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment java.endorsed.dirs=c:\program files\java\jre1.8.0_101\lib\endorsed os.arch=amd64 java.io.tmpdir=C:\Users\_CVSOA~1\AppData\Local\Temp\ line.separator= java.vm.specification.vendor=Oracle Corporation user.variant= exe4j.tempDir=C:\Users\_CVSOA~1\AppData\Local\Temp\e4j9F57.tmp_dir1529937294 os.name=Windows Server 2012 R2 sun.java2d.noddraw=true sun.jnu.encoding=Cp1252
Environment:
DevTest 10.x
Cause:
The error is related to the JAVA runtime error for any software or install4j error coming before installing any software.
Resolution:
Please see the video at https://www.youtube.com/watch?v=AkvvAvxQBig 
Additional Information:
https://www.askvg.com/where-does-windows-store-temporary-files-and-how-to-change-temp-folder-location/