IBM Support

Running the opmodechange.jar script in Rational Directory Server shows an 'Exception in thread main" java.lang.NoClassDefFoundError: ?jar' error

Technote (troubleshooting)


Attempts to change the mode of operation using 'opmodechange.jar' in IBM Rational Directory Server results in the 'Exception in thread "main" java.lang.NoClassDefFoundError: ?jar' Java error.


 ..\jre\bin\java -jar

to change the mode in IBM Rational Directory Server shows the below message:

Exception in thread "main" java.lang.NoClassDefFoundError: ?jar
Caused by: java.lang.NoClassDefFoundError: ?jar
                  at: java.lang.ClassLoader.loadClass<>
                  at: sun.misc.Launcher$AppClassLoader,loadClass<>
                  at: java.lang.ClassLoader.loadClass<>
  Could not find the main class:u^jar.   Program will exit.


This is caused by the Windows setup due to the space given between Program and Files in C:\Program Files.

Resolving the problem

To resolve this issue, ensure that " ..\jre\bin\java" is placed between the double quotes so that the space between Program Files can be handled correctly by the script.


" ..\jre\bin\java" -jar

Document information

More support for: Rational Directory Server
General Information

Software version: 5.0, 5.1, 5.2

Operating system(s): Windows

Reference #: 1649029

Modified date: 05 September 2013

Translate this page: