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.
Please give me directions on how I can add my own .jar files to DSS.BAT and still use eclipsec.exe to start CCS eclipse.
I have recently found out how to use DSS.BAT to launched the Rhino debugger with launching CCS eclipse gui.
This capability of dual debug, both rhino debugging javascipt and CCS debugging of C, is critically important a large multicore project that I am working on.
To have this capability I need to be able to specify to the new DSS.BAT that launches eclipsec.exe to have rhino import my own java .jar files.
From a previous post I know that I can add my own .jar files to standalone rhino with java.exe. But having DSS.BAT start rhino via java.exe in place of eclipsec.exe precludes me lauching CCS.
From the response from my previous post It appears that I should be able to add my .jar with some type of eclipsec.exe .init file changes. ( e2e.ti.com/.../423378 )
So far I have be unsuccessful in searching the Internet for instructions how to add my .jar's to the eclipsec.exe rhino session within the TI DSS.BAT.
Please help me with this eclipsec.exe .init configuration problem.
Andrew
Hi Andrew,
You have two options:
1) add -dev <Path>\external.jar to whatever script that execute eclipsec.exe. i.e "eclipsec.exe -dev c:\temp\my.jar", use comma to separate the jar files.
2) drop your jars into the jre runtime under <installpath>\ccsv6\eclipse\jre\lib\ext
I hope this will help you to get your jar into the runtime classpath.
Regards,
Patrick
I tried this on ccsv6 and both methods work for me, I was able to load the java package inside the scripting console.
Can you try this and see if it works for you or not, dropping the jar into the ext folder inside eclipse/jre or using the -dev argument when starting eclipsec.exe or ccstudio.exe.
In the scripting console, enter the following steps:
importPackages(Package.<your fully qualified package>)
var temp = new AClass()
temp.doSomething()
Andrew,
The java.class.path is set by eclipse to point to the launcher.jar, you shouldn't rely on this property to determine whether your jar is loaded into the jvm or not.
One quick question, did you import the java package in your javascript file? i.e importPackage(Packages.xyz)
I have attached an example jar file that I built for testing this issue, can you give this a try? com.ti.test.zip
Rename the .zip extension for the attached file to .jar.
In your script, try the following:
importPackage(Packages.com.ti.test)
print(new Echo().say("hi"))
You should see hi in the console output.
Patrick
Yes, the example works. I will see if I can create the smallest case where my class gives the error. I have a class that calls OpenCV to save memory as a .bmp file.
Print out what is System.getProperty("java.library.path") and add your dll into this location. Or you can append the dll location into the java.library.path using the System.setProperty("java.library.path", libPath) API.
Patrick