302 words

Client server mode no longer works after JRE install

#1
2013-05-01 11:33

Hi

I had client server mode working with no problems with my application. Then suddenly I was getting the following error "Error: missing 'server' at 'C:\Program Files\Java\jre7\bin\server\jvm.dll' on a client machine. It worked in embedded mode but not client server mode.

After investigating I found that the new version of java on the machine was a jre with no bin\server folder. If I removed java from the machine and included a jdk in my application there were no problems, client server mode once again worked. However, when the jre was reinstalled it no longer worked. So apparently objectdb requires a jdk on each machine as opposed to a jre.

How can I get objectdb to use the jdk I install with my application as opposed to the version of java on the PATH variable. I will not know in advance what is on the users machine.

I hope this is not too dumb a question.

Thanks

cmahony
cmahony's picture
Joined on 2011-05-15
User Post #14
#2
2013-05-01 14:29

When you run server.exe the JVM is selected automatically.

But you can also run the server as an ordinary Java program, so by specifying full JVM path you can select any JDK or JRE that is installed on your computer.

You can also use JRE with no server JVM installed by specifying -client JVM

Additional details about the server mode can be found in the following stackoverflow thread:

http://stackoverflow.com/questions/5941796/no-server-jvm-at

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #1,519
#3
2013-05-02 12:42

So this can only be done from the command line or batch file? The conf file cannot be used to state which jvm is being used?

cmahony
cmahony's picture
Joined on 2011-05-15
User Post #15
#4
2013-05-02 13:29

The conf file cannot be used because it is read only after the JVM is found and started.

Please try:

> server-b -client

 

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #1,521
#5
2013-05-03 00:51

The server is being started from a java application. So how do I do >server -b -client?

cmahony
cmahony's picture
Joined on 2011-05-15
User Post #16
#6
2013-05-03 03:08

Hi. I fumbled around with batch files and now think I have it working ok. Thanks for the help.

cmahony
cmahony's picture
Joined on 2011-05-15
User Post #17

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel