Article - CS40091

Error "Buildfile: build.xml does not exist!" or "java.lang.ClassNotFoundException: com.ptc.windchill.keystore.WTKeyStoreUtil" occurs when running an ant command in a Windchill shell.

Modified: 19-Jun-2017   


Applies To

  • Windchill PDMLink 9.1

Description

  • Getting error Buildfile: build.xml does not exist! Build failed while running the ant commands in a Windchill shell.
  • Another error that might be seen is:

encryptAllPasswords:
[java] Exception in thread "main" java.lang.NoClassDefFoundError: com/ptc/windchill/keystore/WTKeyStoreUtil
[java] Caused by: java.lang.ClassNotFoundException: com.ptc.windchill.keystore.WTKeyStoreUtil
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[java] Could not find the main class: com.ptc.windchill.keystore.WTKeyStoreUtil. Program will exit.

  • Example commands:
ant -f MakeJar.xml
ant –f <WT_HOME>/bin/adminTools/sip/EncryptPasswords.xml encryptAllPasswords
This is a printer-friendly version of Article 40091 and may be out of date. For the latest version click CS40091