Java. Lang. classnotfoundexception Solution

Source: Internet
Author: User

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 ".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.