## Not able to start multiple instances of oXygen

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
Martin Honnen
Posts: 71
Joined: Tue Aug 19, 2014 12:04 pm

### Not able to start multiple instances of oXygen

I would like to start multiple instances of oXygen (version XML Editor 19.0, build 2017042020) on Windows 10, I have read https://www.oxygenxml.com/doc/versions/ ... rties.html and https://www.oxygenxml.com/doc/versions/ ... m-property, based on that I have edited the oxygen19.0.vmoptions file in the installation directory and added a line

Code: Select all

-Dcom.oxygenxml.MultipleInstances=true
However, once I have started one instance with the Windows desktop icon or from the Windows start menu, any attempt to start a new instance the same way simply focuses the already started instance.

In the about section with system properties I see "com.oxygenxml.MultipleInstances true" set so I am not sure what is wrong with my approach.

ionela
Posts: 342
Joined: Mon Dec 05, 2011 6:08 pm

### Re: Not able to start multiple instances of oXygen

Hello,

Unfortunately, on Windows it is not possible to start multiple instances of oXygen if you start the application with the "oXygen" launcher (e.g. oxygen19.0.exe) or the desktop shortcut.
You can start multiple instances of oXygen if you are using the command line startup script "oxygen.bat" to start the application. In this startup script you need to add the system property you have indicated (you can add the parameter after %OXYGEN_JAVA% token):

Code: Select all

-Dcom.oxygenxml.MultipleInstances=true
After that you should be able to open multiple instances of oXygen if you start the application using oxygen.bat.

I hope this helps.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support

Martin Honnen
Posts: 71
Joined: Tue Aug 19, 2014 12:04 pm

### Re: Not able to start multiple instances of oXygen

Thanks, editing and using the .bat works fine to open multiple instances. Is there a way to call the .bat passing in a project file to open that particular project?

Posts: 2666
Joined: Tue May 17, 2005 4:01 pm

### Re: Not able to start multiple instances of oXygen

Hi,

Code: Select all

call oxygen.bat "x:\path\to\my\project.xpr"
Regards,
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

TplusG
Posts: 4
Joined: Tue Feb 27, 2018 12:42 pm

### Re: Not able to start multiple instances of oXygen

Hi, I edited the .bat file, but when I execute it, seeing the following error.

Code: Select all

	Cannot start <oXygen/> XML Author.
Due to:java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at ro.sync.ui.application.ApplicationLauncher.d(Unknown Source)
at ro.sync.ui.application.ApplicationLauncher.launch(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at ro.sync.exml.Oxygen.main(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: no jacob-1.17-M2-x86 in java.library.path
at com.jacob.com.JacobObject.<clinit>(JacobObject.java:107)
at com.sdl.trisoft.triab.AuthoringBridge.onInit(AuthoringBridge.java:47)
at com.sdl.trisoft.oxygen.CustomWorkspaceAccessPluginExtension.applicationStarted(CustomWorkspaceAccessPluginExtension.java:35)
at ro.sync.exml.MainFrame.hvn(Unknown Source)
at ro.sync.exml.MainFrame.<init>(Unknown Source)
at ro.sync.exml.MainFrame.<init>(Unknown Source)
... 11 more


Posts: 2666
Joined: Tue May 17, 2005 4:01 pm

### Re: Not able to start multiple instances of oXygen

Hi,

You have a third party plugin (com.sdl.trisoft.triab.AuthoringBridge) that fails on Oxygen startup and prevents Oxygen from starting. Please remove that plugin's folder and try again. Plugins can be found either in Oxygen/plugins folder or (for Windows) C:\Users\<username>\AppData\Roaming\com.oxygenxml\extensions\vVV.V\plugins (where vVV.V is the version, e.g. v20.1).

Regards,