开发者

can't generate sequence diagram from running code - Enterprise Architect

开发者 https://www.devze.com 2022-12-29 23:57 出处:网络
I\'d like to generate sequence diagrams with EA. I set up a build script, the debug section looks like this:

I'd like to generate sequence diagrams with EA. I set up a build script, the debug section looks like this:

jre=C:\Program Files\Java\jdk1.6.0_20,-Djava.class.path=C:\path\to\my\app

When I try to debug it (which is needed for the diagram generation), I get the following message:

Failed to load C:\Program Files\Java\jdk1.6.0_20\jre\bin\client\jvm.dll, dll or dependent dll is missing

The file jvm.dll is indeed 开发者_运维百科located at the path it tries to load it from. What am I missing here?


Short Answer: Enterprise Architect(EA) is having some struggles using the "Program Files" directories.

Reason Why(Partial): I copied the jvm.dll out of its %java_home%\jre\bin\client directory and put it in c:\Temp to test if EA could now "see" the file. Sure enough, when I pointed EA to the new location it found it just fine. The test still wouldn't run, but at least the file could be "seen" by EA.

Resolution: Re-install the JDK to a non-"Program Files" and non-"Program Files(x86)" directory, then re-point all of the pertinent System Environment Variables (e.g. JAVA_HOME, PATH) and Enterprise Architect Commands to the newly installed JDK location.


There is always FilePathName 8.3 equivalent in Windows.

Instead of C:\Program Files\Java\jdk1.8.0_05

You can write (or similar): C:\PROGRA~1\Java\jdk1.8.0_05

Try in Dos prompt: dir C:\PROGRA~1

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号