Tool/software: Code Composer Studio
Using CCS version 6 to unit test with 'Rational Test RealTime' (RTRT) version 8.0.1, the TDP contains the following (commonly used) lines:
// Import the DSS packages into namespace
importPackage(Packages.com.ti.debug.engine.scripting)
importPackage(Packages.com.ti.ccstudio.scripting.environment)
importPackage(Packages.java.lang)
importPackage(Packages.java.io)
Unfortunately, these lines fail when the unit test is run with the following error:
'Packages' is undefined
This may be (partially) due to the CLASSPATH not being set up. In which case the question is, where should the CLASSPATH be set up in RTRT's TDP?
However, also, assuming CLASSPATH were set up to the following directory:
C:\ti\ccsv6\ccs_base\scripting\docs\DS_API
This would only satisfy the first 2 directory specifications of "Packages.com.ti.debug.engine.scripting" and "Packages.com.ti.ccstudio.scripting".
There is no subdirectory .java.lang (neither is there a subdirectory of just lang) anywhere under the C:\ti\ directory. Nor is there a java.io subdirectory (although there is an io subdirectory as follows:
C:\ti\xdctools_3_32_01_core\packages\xdc\services\io.
So, the 2nd question is, to what should CLASSPATH be set up?