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

Post by Martin Honnen » Mon Jun 12, 2017 8:33 pm

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

Post by ionela » Tue Jun 13, 2017 4:08 pm

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

Post by Martin Honnen » Tue Jun 13, 2017 5:04 pm

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?

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

Re: Not able to start multiple instances of oXygen

Post by adrian » Tue Jun 13, 2017 6:45 pm

Hi,

Code: Select all

call oxygen.bat "x:\path\to\my\project.xpr"
Regards,
Adrian
Adrian Buza
<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

Post by TplusG » Tue Mar 19, 2019 9:27 am

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 java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.jacob.com.LibraryLoader.loadJacobLibrary(LibraryLoader.java:184)
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

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

Re: Not able to start multiple instances of oXygen

Post by adrian » Tue Mar 19, 2019 11:44 am

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,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply