Installation Note 40363: "java.lang.NoClassDefFoundError" error received when removing backup files after applying maintenance release SAS® 9.2 TS2M2
If you apply hot fixes after installing SAS
9.2 TS2M2 or applying
Maintenance 2 to
an existing installation, and you then attempt to run the script provided to remove
the backup files, you may receive a Java error similar to the following:
$ ./cleanup.sh
Exception in thread "main" java.lang.NoClassDefFoundError: com/sas/tools/maint/mit/cleaner/Cleaner
Caused by: java.lang.ClassNotFoundException: com.sas.tools.maint.mit.cleaner.Cleaner
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: com.sas.tools.maint.mit.cleaner.Cleaner. Program will exit.
$
The Maintenance Installation Tool (sas.tools.maint.mit.jar)
is included with every hot fix download, and the
problem arises because some of the hot fixes built for SAS 9.2 TS2M2
were packaged with an
older version of the MIT that does not include Cleaner.class, which should be
called from the cleanup.sh script.
To enable the cleanup.sh script to execute correctly,
download an updated version of the MIT from
the following location:
Replace the existing MIT .jar
file (<SASHOME>/InstallMisc/MIT/sas.tools.maint.mit.jar)
with the updated version.
Operating System and Release Information
SAS System | N/A | z/OS | 9.2 TS2M2 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M2 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M2 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M2 | |
Microsoft® Windows® for x64 | 9.2 TS2M2 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M2 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M2 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M2 | |
Microsoft Windows Server 2003 for x64 | 9.2 TS2M2 | |
Microsoft Windows Server 2008 | 9.2 TS2M2 | |
Microsoft Windows Server 2008 for x64 | 9.2 TS2M2 | |
Microsoft Windows XP Professional | 9.2 TS2M2 | |
Windows 7 Enterprise 32 bit | 9.2 TS2M2 | |
Windows 7 Enterprise x64 | 9.2 TS2M2 | |
Windows 7 Home Premium 32 bit | 9.2 TS2M2 | |
Windows 7 Home Premium x64 | 9.2 TS2M2 | |
Windows 7 Professional 32 bit | 9.2 TS2M2 | |
Windows 7 Professional x64 | 9.2 TS2M2 | |
Windows 7 Ultimate 32 bit | 9.2 TS2M2 | |
Windows 7 Ultimate x64 | 9.2 TS2M2 | |
Windows Vista | 9.2 TS2M2 | |
Windows Vista for x64 | 9.2 TS2M2 | |
64-bit Enabled AIX | 9.2 TS2M2 | |
64-bit Enabled HP-UX | 9.2 TS2M2 | |
64-bit Enabled Solaris | 9.2 TS2M2 | |
HP-UX | 9.2 TS2M2 | |
HP-UX IPF | 9.2 TS2M2 | |
Linux | 9.2 TS2M2 | |
Linux for x64 | 9.2 TS2M2 | |
Linux on Itanium | 9.2 TS2M2 | |
OpenVMS on HP Integrity | 9.2 TS2M2 | |
Solaris for x64 | 9.2 TS2M2 | |
Tru64 UNIX | 9.2 TS2M2 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
If you apply hot fixes after installing SAS® 9.2 TS2M2 or after applying Maintenance 2 to an existing installation, and you then run the script provided to remove the backup files, you may receive a Java error.
Type: | Installation Note |
Priority: | high |
Date Modified: | 2010-07-19 18:52:52 |
Date Created: | 2010-07-15 16:06:43 |