After installing Rational Rose 2003 in Windows XP SP2, a dialog box is displayed, showing "Java. Lang. classnotfoundexception ",
The official solution is as follows:
Problem
Enabling the Web modeler add-in Rose produces a 'java. Lang. classnotfoundexception'
Solution
Symptom:
Activating the Web modeler add-in gives warning
"Java. Lang. classnotfoundexception ".
Immediately exiting rose results in a "Java. Lang. nullpointerexception" Warning
And the Rose does not respond.
Cause:
This is usually due to a broken Microsoft Java Vm, but may be due to a missing
Registry entry.
Resolution:
First, confirm that the Windows registry value "trustedclasspath" exists under
The key "HKEY_LOCAL_MACHINE/software/Microsoft/Java VM ".
This value must exist and contain the file paths:
C:/winnt/Java/trustlib/rosedatamodeler.zip;
C:/winnt/Java/trustlib/comwrappers.zip;
C:/winnt/Java/trustlib/xerces. jar;
Steps:
1. Run regedit: use Windows "start" menu> Run...> type 'regedit 'and
Hit enter.
Warning: Regedit will let you modify information critical to operating
Computer. Before editing the registry, make sure you understand how to restore
It if a problem occurs.
For more information see the "restoring the Registry" Help-topic in regedit or
Regedit32.
2. Browse to "HKEY_LOCAL_MACHINE/software/Microsoft/Java VM"
3. If trustedclasspath does not exit, create it as a new string value.
4. If trustedclasspath does not have the paths listed above, add them to
List separated by semicolons.
Example:
HKEY_LOCAL_MACHINE/software/Microsoft/Java VM
Trustedclasspath [REG_SZ]
= "C:/winnt/Java/trustlib/rosedatamodeler.zip;
C:/winnt/Java/trustlib/comwrappers.zip;
C:/winnt/Java/trustlib/xerces. jar ;"
5. Run rose and turn on the Web modeler add-in using the add-in manager.
Translated into Chinese:
1. Open the Registry
2. Locate "HKEY_LOCAL_MACHINE/software/Microsoft/Java VM"
3. Create a new item trustedclasspath [REG_SZ]
4. The value data is
(1) Windows 2000
"C:/winnt/Java/trustlib/rosedatamodeler.zip;
C:/winnt/Java/trustlib/comwrappers.zip;
C:/winnt/Java/trustlib/xerces. jar ;"
(2) Windows XP
"C:/Windows/Java/trustlib/rosedatamodeler.zip;
C:/Windows/Java/trustlib/comwrappers.zip;
C:/Windows/Java/trustlib/xerces. jar ;"
For example
HKEY_LOCAL_MACHINE/software/Microsoft/Java VM
Trustedclasspath [REG_SZ]
= "C:/winnt/Java/trustlib/rosedatamodeler.zip;
C:/winnt/Java/trustlib/comwrappers.zip;
C:/winnt/Java/trustlib/xerces. jar ;"
5. Run rose again. On the "add-in Manager" tab, select "Web modeler add-in using ".