Skip to content

CIF explorer command line script is broken

From !656 (merged):

The cifexplorer script currently references an incorrect package. org.eclipse.escet.cif.explorer.app should be org.eclipse.escet.cif.explorer. This is an existing problem.

!SESSION 2023-09-23 13:45:20.473 -----------------------------------------------
eclipse.buildId=unknown
java.version=17.0.5
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en
Framework arguments:  -application org.eclipse.escet.common.app.framework.application org.eclipse.escet.cif.explorer.app org.eclipse.escet.cif.explorer.app.ExplorerApplication
Command-line arguments:  -os linux -ws gtk -arch x86_64 -application org.eclipse.escet.common.app.framework.application org.eclipse.escet.cif.explorer.app org.eclipse.escet.cif.explorer.app.ExplorerApplication

!ENTRY org.eclipse.osgi 4 0 2023-09-23 13:45:21.540
!MESSAGE Application error
!STACK 1
OSGi bundle "org.eclipse.escet.cif.explorer.app" not found.
        at org.eclipse.escet.common.app.framework.AppEclipseApplication.start(AppEclipseApplication.java:64)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1440)

The solution is to change the script cifexplorer to:

... -application org.eclipse.escet.common.app.framework.application -nosplash org.eclipse.escet.cif.explorer org.eclipse.escet.cif.explorer.app.ExplorerApplication $*