Article - CS205222
PSI fails with error message: "Unable to delete file java.exe" in Windchill
Modified: 19-Oct-2023
Applies To
- Windchill PDMLink 9.1 to 11.1
- FlexPLM 10.2 to 11.1
Description
- PTC Solution Installer (PSI) fails to update Java with below error while updating Windchill:
Unable to delete file java.exe
- PSI fails during datecode update with below error:
Unable to delete file java.exe
- The installation log file <WT_HOME>\Java\installer\logs\JAVASDK_ptcinstall.log contains following errors
The installation is aborting due to an unexpected error. InstallerData\javasdk\uninstall.xml:8: Unable to delete file <WT_HOME>\Java\bin\java.exeOR
The installation is aborting due to an unexpected error. InstallerData\javasdk\uninstall.xml:8: Unable to delete file <WT_HOME>\Java\bin\java.dll
- Stack trace
org.apache.tools.ant.taskdefs.Delete.handle(Delete.java:719) org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:697) org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) org.apache.tools.ant.Task.perform(Task.java:348) org.apache.tools.ant.Target.execute(Target.java:435) org.apache.tools.ant.Target.performTasks(Target.java:456) org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) org.apache.tools.ant.Project.executeTarget(Project.java:1376) org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) org.apache.tools.ant.Project.executeTargets(Project.java:1260) com.ptc.windchill.install.actions.AntUtil.executeAntScript(AntUtil.java:231) com.ptc.windchill.install.actions.AntUtil.executeAntScript(AntUtil.java:124) com.ptc.windchill.install.actions.AntUtil.executeAntScript(AntUtil.java:90) com.ptc.windchill.install.actions.AntUtil.executeAntScript(AntUtil.java:65) com.ptc.windchill.install.actions.AntTargetsAction.executeAntScript(AntTargetsAction.java:206) com.ptc.windchill.install.actions.AntTargetsAction.process(AntTargetsAction.java:122) com.ptc.windchill.install.framework.InstallAction.run(InstallAction.java:468) com.ptc.windchill.install.framework.InstallAction.install(InstallAction.java:313) com.zerog.ia.installer.actions.CustomAction.installSelf(Unknown Source) com.zerog.ia.installer.InstallablePiece.install(Unknown Source) com.zerog.ia.installer.InstallablePiece.install(Unknown Source) com.zerog.ia.installer.GhostDirectory.install(Unknown Source) com.zerog.ia.installer.InstallablePiece.install(Unknown Source) com.zerog.ia.installer.Installer.install(Unknown Source) com.zerog.ia.installer.LifeCycleManager.consoleInstallMain(Unknown Source) com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source) com.zerog.ia.installer.Main.main(Unknown Source) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) com.zerog.lax.LAX.launch(Unknown Source) com.zerog.lax.LAX.main(Unknown Source)
This is a printer-friendly version of Article 205222 and may be out of date. For the latest version click CS205222