The following steps have been tested on Kubuntu 20.04 with Oracle JDK 17. The original JRE (folder) shipped with CCS has been deleted.
Use standalone Nashron from OpenJDK. Create a folder named "nashorn" in the same folder with "ccstudio" and "eclipse", unzip the jars into the newly created folder. Edit "./ccs1110/ccs/eclipse/plugins/com.ti.dvt.control.engine_4.1.0.202105121547/META-INF/MANIFEST.MF", so that the final file looks like this:
Manifest-Version: 1.0
Bundle-SymbolicName: com.ti.dvt.control.engine;singleton:=true
Require-Bundle: com.ti.dvt.core,com.ti.dvt.datamodel;visibility:=reexp
ort,org.apache.ant;visibility:=reexport,org.eclipse.ant.core;visibili
ty:=reexport,org.eclipse.core.runtime;visibility:=reexport,com.ti.dvt
.analysis.framework;visibility:=reexport,com.ti.util,com.ti.dvt.idead
apter2
Bundle-ManifestVersion: 2
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-Vendor: Texas Instruments
Eclipse-LazyStart: true
Export-Package: com.ti.dvt.control.engine.activities,com.ti.dvt.contro
l.engine.activities.controlxml,com.ti.dvt.control.engine.clone,com.ti
.dvt.control.engine.core,com.ti.dvt.control.engine.errors,com.ti.dvt.
control.engine.plugin,com.ti.dvt.control.engine.sessions,com.ti.dvt.c
ontrol.engine.types,com.ti.dvt.control.engine.types.properties,com.ti
.dvt.control.engine.types.properties.util,org.apache.tools
Bundle-Name: DVT Control Engine
Bundle-Version: 4.1.0.202106281057
Bundle-ClassPath: .,
com.ti.dvt.control.engine.jar,
external:$osgi.syspath$/../nashorn/asm-7.3.1.jar,
external:$osgi.syspath$/../nashorn/asm-analysis-7.3.1.jar,
external:$osgi.syspath$/../nashorn/asm-commons-7.3.1.jar,
external:$osgi.syspath$/../nashorn/asm-tree-7.3.1.jar,
external:$osgi.syspath$/../nashorn/asm-util-7.3.1.jar,
external:$osgi.syspath$/../nashorn/nashorn-core-15.3.jar
Bundle-Activator: com.ti.dvt.control.engine.plugin.ControlEnginePlugin
The only change is the Bundle-ClassPath:
field.
Now CCS is ready to go. If it fails, try launch with ./ccstudio -clean
and adding these lines to ccstudio.ini
:
--add-modules=ALL-SYSTEM
-Dpolyglot.js.nashorn-compact=true