Book a Demo

Author Topic: 'Failed to find class' generating Seq Diagram  (Read 2754 times)

JohnS

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
'Failed to find class' generating Seq Diagram
« on: November 13, 2006, 07:36:41 am »
Hello,

I'm currently using EA 6.5 and have MDG Link for eclipse.  We are trying to create sequence diagrams from the existing project (called CTE).

The code was built using Eclipse.  I then imported the code into EA and created package build scripts for debugging by doing the following on the debug tab:
1.  Put the main class name in the top edit box (ex: xxx.yyyyyy.cte.Main).
2. Put the runtime variables in the bottom edit box
 jre='path to JRE'
 -Djava.class.path='semicolon separated classpath'

One of the directories on the classpath is the absolute directory to xxx.yyyyy.cte.Main.  

When I try to debug to create the sequence diagram the JRE is loaded.  However I get the following errors
'Failed to find class xxx/yyyyy/cte/Main'
'java.lang.NoClassDefFoundError: xxx/yyyyy/cte/Main'
'Failed to set breakpoint in file ....'
'debug starts for xxx.yyyyy.cte.Main'
'Thread Id 1644 has encountered an exception, debugging may end, stack trace follows:'

Unfortunately there is no stack trace output!

I've been trying to work around this problem for some time but have had no luck.  Any help would be greatly appreciated!

Thanks in advance,
  John

JohnS

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: 'Failed to find class' generating Seq Diagram
« Reply #1 on: November 13, 2006, 08:40:06 am »
Hello Again.

I've modified my Debug build script and I'm still having problems but EA seems to have found my class file.

Essentially I put the absolute directory path to my main class in the 'Directory:' text box, at the top of the dialog.  Then I removed the '-Djava.class.path' from the 'run time variables' text box.

This produced the following error:
'Warning, no java.class.path property set, defaulting to environment variable if present'
'Warning, no CLASSPATH environment variable present on system, defaulting to <default Directory>
'classpath used will be:-'
'-Djava.class.path=<default Directory>'
'Loading Java Virtual Machine from path <JRE Directory>
'Obtained Java Virtual Machine version 1.4'
'debug starts for xxx.yyyyy.cte.Main'
'Thread Id 2856 has encountered an exception, debugging may end, stack trace follows:'

Again no stack trace is output.  So I still can't get the application to run, but it seems the JVM is finding my main class.  Unfortunately, this is just to see if the JVM can find my main class.  

This isn't a scalable solution because there are many jar files and classes that need to be found.  The java.class.path needs to work or I'll never be able to run my app correctly.

Again any feedback is appreciated.

- John