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

Technote (troubleshooting)


Problem(Abstract)

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.

Symptom

 ..\jre\bin\java -jar com.ibm.rds.utility.opmodechange.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.net.URLClassLoader.findClass<URLClassLoader.java:421>
                  at: java.lang.ClassLoader.loadClass<ClassLoader.java:652>
                  at: sun.misc.Launcher$AppClassLoader,loadClass<Launcher.java:346>
                  at: java.lang.ClassLoader.loadClass<ClassLoader.java:618>
  Could not find the main class:u^jar.   Program will exit.

Cause

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.

Example:

" ..\jre\bin\java" -jar com.ibm.rds.utility.opmodechange.jar


Rate this page:

(0 users)Average rating

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:

2013-09-05

Translate my page

Machine Translation

Content navigation