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.

HOWTO DSS -dss.debug specify my .jar file?

Other Parts Discussed in Thread: CCSTUDIO, UNIFLASH

I had made a successful,  working hack to the DSS.BAT to launch Rhino with the addtioin of my own jar  as follows:

...

java.exe -Xms40m -Xmx384m -cp !RHINO_JAR!;C:\andrew\hello_GenericC66xxDevice\Release\od.jar;;!SCRIPTING_JARS!;!DVT_SCRIPTING_JAR! !RHINO_SHELL! %1 %2 %3 %4 %5 %6 %7 %8 %9

...

However, DSS.BAT now insists on launching with eclipsec.exe and not java.exe.

I don't know what in my CCS5 environement has changed for this to happen.

Here is the cmd.exe output from DSS.BAT:

...

C:\ti\ccsv5\ccs_base\scripting\bin>if 1 == 1 (!DEBUGSERVER!\..\..\eclipse\eclipsec.exe -nosplash -application com.ti.ccstudio.apps.runScript -dss.debug -dss.rhinoArgs "C:\andrew\hello_GenericC66xxDevice\bat\..\js\release_ed5b.js" )
  else (!DEBUGSERVER!\..\..\eclipse\eclipsec.exe -nosplash -application com.ti.ccstudio.apps.runScript -dss.rhinoArgs "-dss.debug C:\rio_c66xx_standalone_ccs5\hello_GenericC66xxDevice\bat\..\js\release_ed5b.js" )
Loaded FPGA Image: C:\ti\ccsv5\ccs_base\common\uscif\dtc_top.jbc

...

Notice that my .jar file is no longer provided to Rhino. ( "C:\andrew\hello_GenericC66xxDevice\Release\od.jar" ).

Of course my script fails since Rhino can't find my classes in "od.jar".

I want to start Rhino with the addtion of my .jar files.


I know from the Hotspot documentation that if java.exe is called with -cp for rhino, that Hotspot won't use the CLASSPATH.

So my question:

  Now that  eclipsec.exe is in play how do I now provide my own .jar files to DSS.BAT so that Rhino will see them?

Andrew

  • Hi Andrew,
    Staring with CCSv5.3, DSS defaulted to using the new headless script launcher, which is the eclipsec command you see. The old way is still supported, but is no longer the default. So I suspect that you had everything working and then you updated your CCSv5 installation to a version that defaults to the headless script launcher. After the update, you modified the new dss.bat as usual where it calls the script via java.exe.... but things stopped working. Does this sounds about right?

    ki
  • Yes. Sounds right.
  • If you look at the newer dss.bat that comes with CCSv5.3+, on line 20, you will see:

    if not exist "!DEBUGSERVER!\..\..\eclipse\eclipsec.exe" (
        REM if eclipsec.exe is not present, use the old way of launching the script
        goto LAUNCH_DSS_SCRIPT
    )


    to always force dss.bat to use the old way, you can simply insert the following statement right before line 20:

        goto LAUNCH_DSS_SCRIPT

    That will bypass the new headless script launcher completely and jump right to the old way that you are used to and launch the script via the java call in line 96.

    Thanks

    ki

  • Thanks for your posting.

    Yes that did work.

    Do you mind my asking a few questions about eclipsec.?

    1. What functionality am I missing when I use  "java.exe -jar js.jar"  and not "eclipsec.exe"?

    2. How do I launch eclipsec.exe with a list of my .jar files?

    3. Is "java.exe js.jar"  obsoleted and to disappear in the next 5 years?

    4. Why did TI move to "eclipsec" in the first place?

    5.  I can't find any useful documentaiton on eclipsec. Can you provide pointers to websites that explain how it works and how I can use it?

    6. Can I use a "head"-ful  Eclipse Java IDE to debug my .js and .java in the DSS environment?

    Thanks!

    Andrew

  • AYM said:
    Do you mind my asking a few questions about eclipsec.?

    sure!

    AYM said:
    1. What functionality am I missing when I use  "java.exe -jar js.jar"  and not "eclipsec.exe"?

    In CCSv5.3 and greater, you lose the ability to do this:

    http://processors.wiki.ti.com/index.php/DSS_-_Launching_CCS_from_DSS

    AYM said:
    2. How do I launch eclipsec.exe with a list of my .jar files?

    I think you can modify an ini file somewhere to add your jar to the list. But I'm not sure. If you want to explore this route, we can dig around for this.

    AYM said:
    3. Is "java.exe js.jar"  obsoleted and to disappear in the next 5 years?

    No. Many *current* tools still launch DSS via java.exe (like command-line uniflash).

    AYM said:
    4. Why did TI move to "eclipsec" in the first place?

    To better support launching CCS from DSS (as mentioned in the answer to #1) from javascript. And also because changes made to CCS required the eclipsec method if you want to launch CCS from DSS.

    AYM said:
    5.  I can't find any useful documentaiton on eclipsec. Can you provide pointers to websites that explain how it works and how I can use it?

    There is information on the Eclipse sites:

    We don't really document eclipsec because we rather hide the usage due to complexity. And also because we use our own launcher to launch the CCS GUI instead (ccstudio.exe)

    AYM said:
    6. Can I use a "head"-ful  Eclipse Java IDE to debug my .js and .java in the DSS environment?

    yes, though if you want to debug your DSS .js, we strongly recommend you use Rhino instead. This is the supported solution.

    Thanks

    ki

  • Thank you. I really appreciate your help.

    Cheers!

    Andrew