Chinaunix首页 | 论坛 | 博客

  • 博客访问: 294992
  • 博文数量: 57
  • 博客积分: 2014
  • 博客等级: 大尉
  • 技术积分: 605
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-18 14:30
文章存档

2015年(3)

2009年(5)

2008年(32)

2007年(17)

我的朋友

分类: 项目管理

2008-03-08 01:11:07

Java老师非要让我们把软工与语言一起学,说起来Rose就是必须的了,
下载了三个小时,终于解决下到了所谓的Rational Rose试用版,累死累活的.
本以为高高兴兴的安装完成就ok了,谁知道,偏偏他就给我出几个毛病,乱乱的.

废话少说,看看IBM的官方文档怎么描述这个毛病的
- when starting application - Rose: java.lang.ClassNotFoundException
- when closing application - Rose: java.lang.NullPoinerException

虽说不影响正常使用,不过这也太影响心情了,看着ibm的解决方法,花了3分钟,终于解决了.
先看看官方的描述

The java.lang.ClassNotFoundException / java.lang.NullPoinerException appear when starting / closing IBM® Rational Rose® 2003

 Technote (FAQ)
 
Problem
Installing Rose 2003 as a part of Rational Suite 2003 may cause the following
errors to be reported:
- when starting application - Rose: java.lang.ClassNotFoundException
- when closing application - Rose: java.lang.NullPoinerException
 
Cause
The Rational Rose installer has an issue with the installation of the Microsoft
Java Virtual Machine component.
This issue is being investigated and will be addressed in the subsequent
releases.
 
Solution
Check if the following registry information is present on the machine:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM]
"Classpath"=hex(2):25,73,79,73,74,65,6d,72,6f,6f,74,25,5c,6a,61,76,61,5c,63,6c,6
1,73,73,65,73,3b,2e,00
"TrustedClasspath"="C:\\WINNT\\java\\trustlib"

If so, this means that the Microsoft Java VM was installed correctly on the
machine but
the TrustedClasspath was not completely set up during installation.

In this case, make sure that the following applicable entries (according to the
correct path on the machine)
appear in the TrustedClasspath entry of the Microsoft Java VM registry key:

"TrustedClasspath"=c:\winnt\java\trustlib;c:\winnt\java\trustlib\rosedatamodeler
.zip;c:\winnt\java\trustlib\comwrappers.zip;c:\winnt\java\trustlib\xerces.jar;c:
\programfiles\rational\rose\web modeler\xerces.jar

If the Microsoft Java VM registry key is not present on the machine, it appears
that the MSJVM may not be installed correctly.

弄来弄去原来是微软的Java虚拟机跟Rose有冲突,唉,看着IBM的做法都麻烦,动手写了个注册表脚本,导入就吧问题解决了.现分享如下

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM]
"TrustedClasspath"="c:\windows\java\trustlib\rosedatamodeler.zip;c:\windows\java\trustlib\comwrappers.zip;c:\windows\java\trustlib\xerces.jar;"

累了,睡觉,明天继续研究高数,线代,总要在算法上有所长进才行啊.

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

chinaunix网友2009-10-20 12:01:49

解决了,我从别的地方看到把 Add-in Manager 里面的Web Modeler去掉了就好了

chinaunix网友2009-10-20 11:56:19

补充以下我的是 xp sp2系统

chinaunix网友2009-10-20 11:54:11

楼主,为什么我用你这种方法不行啊?

chinaunix网友2008-07-22 15:17:31

对我很有用,谢谢

chinaunix网友2008-04-21 22:42:37

谢谢啦 对我很有帮助