sir i have tried bu again i am getting database use in other processs
com.objectdb.Server.main(args);
i have put this line in main class and again i made a new exe and make it shareable but when second system access the
exe again i got the same error
Usage: java com.objectdb.Server [options] start | stop | restart
options include:
-conf <path> : specify a configuration file explicitly
-port <port> : override configuration's server port
-silent : avoid printing messages to the standard output
-console : avoid showing the server tray icon
gaapmrp.CustomerOrderController.EditcreatecustomerorderController.companyinvoice
()
[ObjectDB 2.7.4] javax.persistence.PersistenceException
Attempt to open a database file 'C:\Gaap MRP\gaapmrp1.odb' that is currently in
use by another process (error 141)
at com.objectdb.jpa.EMF.createEntityManager(EMF.java:152)
at gaapmrp.applicationclasses.DBHelper1.getDatabaseName(DBHelper1.java:7
14)
at gaapmrp.GAAPMRP.start(GAAPMRP.java:56)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161
(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(Platfor
mImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.
java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformI
mpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatch
er.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.ja
va:177)
at java.lang.Thread.run(Unknown Source)
Caused by: com.objectdb.o.UserException: Attempt to open a database file 'C:\Gaa
p MRP\gaapmrp1.odb' that is currently in use by another process
at com.objectdb.o.MSG.a(MSG.java:64)
at com.objectdb.o.LFL.J(LFL.java:930)
at com.objectdb.o.LFL.x(LFL.java:887)
at com.objectdb.o.LFL.x(LFL.java:797)
at com.objectdb.o.DFL.<init>(DFL.java:241)
at com.objectdb.o.DMG.<init>(DMG.java:27)
at com.objectdb.o.MST.<init>(MST.java:127)
at com.objectdb.o.MST.ao(MST.java:109)
at com.objectdb.o.MSF.Yy(MSF.java:190)
at com.objectdb.o.OMF.r(OMF.java:783)
at com.objectdb.jpa.EMF.r(EMF.java:130)
at com.objectdb.o.OMF.w(OMF.java:694)
at com.objectdb.jpa.EMF.createEntityManager(EMF.java:149)
... 11 more
i am totally confused where i am wrong please give me proper way