Creating Sirius Session for AIRD Files

Hello,
I have loaded the capella .melodymodeller file through EMF. The problem is this file don’t have any information about the diagrams in the project.
For that I need to load the representations file too. To open Sirius session I am using the following code:
The above code causes the following exception:
Can somebody tell me how to handle this exception?
Sometimes, when I run the same project I get the following Exception too:

Are you trying to open Sirius Session in Eclipse application with GUI or in headless mode ?
Sirius needs running workbench for its work.
Below the link to the Capella HTMLCommandLine class that runs Sirius session in headless mode.
For this purpose fake workbench is used.
I tryed this method and it worked for me.
link

Thanks for the reply. I was not running it as eclipse application (I was running it as Java Application). It worked when I select Eclipse Application as Run Configuration.

a66as wrote on Wed, 21 February 2018 13:22
Thanks for the reply. I was not running it as eclipse application (I was running it as Java Application). It worked when I select Eclipse Application as Run Configuration.
Ok. After you will change your app to headless (or GUI) eclipse application you will succeed.

Copyright © Eclipse Capella, the Eclipse Capella logo, Eclipse and the Eclipse logo are Trademarks of The Eclipse Foundation.