java.lang.ClassNotFoundException 解決方案

來源:互聯網
上載者:User

windows xp sp2安裝rational rose 2003後,每次啟動都會彈出一個對話方塊,顯示"java.lang.ClassNotFoundException",

官方提供的解決方案如下:

Problem
Enabling the Web Modeler Add-In 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 the
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 the
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. 

翻譯成中文就是:

1.開啟註冊表

2.定位到"HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Java VM"

3.建立項TrustedClasspath [REG_SZ]

4.其數值資料為

(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;"

例如

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.重新運行Rose,在"Add-In Manager"選項卡中選中"Web Modeler add-in using" .

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.