This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NoClassDefFoundErrors when using DSS to profile code

Other Parts Discussed in Thread: CCSTUDIO

CCS version: 5.0.2.00006
OS version:  2.6.32-31-generic #61-Ubuntu x86_64 GNU/Linux

When profiling from within CCS (Eclipse) everything works fine. But when I use DSS and try to automate the profiling (like on the page linked below) I get into a mess of NoClassDefFoundErrors. 

http://processors.wiki.ti.com/index.php/Java_Scripting_with_DSS#Using_DVT_APIs

The error happens when trying to obtain the DVTServer:

> ScriptingEnvironment env = ScriptingEnvironment.instance();
> ... /* Stuff */
> DVTServer dvtServer = (DVTServer) env.getServer("DVTServer.1");

 

The first one is for IProfileAnalysisProviderList. This can be fixed by adding the following jar-file:

com.ti.dvt.profileanalysismanager_3.0.0.201101131203.jar

 

This leads to a second one; IBuffer$IDiscontinuityEvent. This in turn can be fixed by adding yet another jar-file to $CLASSPATH.

By searching for jar-files matching the missing classes and adding them to the class path I finally end up with two mising classes:

com.ti.dvt.cceideadapter.CCEIDEAdapter
com.ti.dvt.ccesymbolmanager.CCStudioSymbolManager

 

Adding all jar-files that are opened by Eclipse to $CLASSPATH (got a list with strace when doing profiling in Eclipse) still doesn't fix this error. Using grep -R and searching for the classnames in the entire installation directory doesn't help either (grep doesn't find any matching files).

In CCSv4 the class seems to be defined in com.ti.dvt.cceideadapter_1.0.0.201001081305.jar. Using this file doesn't work (Well, I had to try at least).

Tried to install v5.1 and use that. Get the same errors there and end up with the same classes missing.

Am I doing something horribly wrong? Adding wrong jars to my $CLASSPATH?

What's bugging me is that profiling the same project works in Eclipse. The project is really simple, basically the Hello World-example but replaced the print with a simple for-loop.

I would appreciate any help I can get on this as profiling the testsuite by hand each time drives me insane.

Best regards
// Emil Eriksson

PS. The $CLASSPATH before adding random jars: /scratch/emil/ccsv5/ccs_base_5.0.2.00006/DebugServer/packages/ti/dss/java/com.ti.ccstudio.scripting.environment_3.1.0.jar
/scratch/emil/ccsv5/ccs_base_5.0.2.00006/DebugServer/packages/ti/dss/java/com.ti.debug.engine_1.0.0.jar
/scratch/emil/ccsv5/ccs_base_5.0.2.00006/DebugServer/packages/ti/dss/java/dss.jar
/scratch/emil/ccsv5/ccs_base_5.0.2.00006/dvt/scripting/com.ti.dvt.scripting.engine_3.0.0.201101131203.jar
/scratch/emil/ccsv5/ccs_base_5.0.2.00006/dvt/scripting/dvt_scripting.jar
.DS