Chinaunix首页 | 论坛 | 博客
  • 博客访问: 680267
  • 博文数量: 79
  • 博客积分: 2608
  • 博客等级: 少校
  • 技术积分: 889
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-19 23:57
个人简介

一家之计在于和,一生之计在于勤。

文章分类

全部博文(79)

文章存档

2022年(2)

2019年(1)

2017年(1)

2015年(2)

2014年(2)

2013年(2)

2012年(2)

2011年(6)

2010年(20)

2009年(13)

2008年(28)

分类: 项目管理

2008-08-11 18:04:10

安装完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

以上的官方解决方案是在Windows Server 2003下的解决办法,现总结在windows xp/2000下的解决办法:

方法一:下载SHW32.DLL文件覆盖Rose 2003中的该原文件即可。
  用shw32.dll文件覆盖安装目录下同名文件。这个文件默认在在c:\Program Files\Rational\Common目录下.
 
方法二:修改注册表
    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;“
    5.重新运行Rose,在"Add-In Manager"选项卡中选中"Web Modeler add-in using" .
   

 

阅读(3082) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~