Article - CS29380

Running a Windchill command in Windchill Shell from a shell script or batch file in Windchill PDMLink

Modified: 19-Jul-2023   


Applies To

  • Windchill PDMLink 9.1 to 12.0.2.9

Description

  • Running a Windchill command in Windchill Shell from a shell script or a batch file in Windchill
  • How to execute Windchill commands from a shell script in Unix or batch file in Windows?
  • Errors occurred while using a batch file to start Windchill.
C:\Users\Administrator>echo %WT_HOME%
D:\ptc\windchill12.0\Windchill
C:\Users\Administrator>%WT_HOME%\bin\windchill.exe shell
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ptc/windchill/mx/util/Properties has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
  • Running windchill start or windchill stop command from cmd giving below error
'windchill' is not recognized as an internal or external command, operable program or batch file.
This is a printer-friendly version of Article 29380 and may be out of date. For the latest version click CS29380