421 words

server.exe on 32bit and 64bit Windows

#1
2011-11-14 10:46

Is the server.exe compatible to start the objectdb server on Windows 64bit OS?  Or 32bit only?

 

longpat
longpat's picture
Joined on 2011-05-30
User Post #13
#2
2011-11-14 13:57

It should work on both. If it doesn't - please provide more details.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #733
#3
2011-11-16 00:16

The problem is that it cannot start because it cannot find the jvm on the 64bit install

Java 7 is correctly installed with JAVA_HOME and JRE_HOME set.

 The temporary workaround was to create a .bat file with the following command:

"C:\Program Files\Java\jdk1.7.0\bin\java" -server -Xms16M -Xmx256M -cp "objectdb.jar" com.objectdb.Server start

 

The OS is Windows Server 2008 R2  64bit

Have you tested server.exe on this environment?

see attached screen prints

 

longpat
longpat's picture
Joined on 2011-05-30
User Post #14
#4
2011-11-16 11:44

It seems that explorer.exe and server.exe try to locate a win32 JVM (also on Windows 64) and if only a win64 JVM is available - they fail. Your workaround is good. You may also try installing win32 JVM in addition to the win64 JVM.

This will be fixed in one of the next builds. Thank you for your report.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #748
#5
2011-12-07 19:31

Build 2.3.4_03 includes new explorer.exe and server.exe that should work well on Windows 7 and in Windows 64 bit.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #781
#6
2011-12-08 07:42

I just tried this new version but it doesnt work for me. I have Windows 64bit with JAVA as you can see below. The version objectdb-2.3.4_02.zip works fine, but the new one objectdb-2.3.4_03.zip claims that JVM cannot be found when running server or explorer.

C:\>java -version
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

dmarko
dmarko's picture
Joined on 2011-09-22
User Post #4
#7
2011-12-08 12:44

Starting build 2.3.4_03 explorer.exe and server.exe are based on winrun4j.

Could you please write the exact error message? Which operating system do you use?

In addition, according to winrun4j documentation you may specify the path to the JVM in explorer.ini and server.ini files (in the directory of explorer.exe and server.exe), where each file has a single text line:

vm.location=C:\Program Files\Java\jdk1.6.0_29\jre\bin\server\jvm.dll

Notice that the specified path is to the jvm.dll file. Please try it.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #782
#8
2011-12-08 14:18

1. Trying again without explorer.ini. ... getting message box with text: "Failed to find Java VM"

2. Trying with explorer.ini with line vm.location=c:\jdk16\jre\bin\server\jvm.dll  .... getting message "Error starting Java VM"

 

I'm running Windows7 Prof. 64bit 

dmarko
dmarko's picture
Joined on 2011-09-22
User Post #5
#9
2011-12-09 03:45

Build 2.3.4_04 includes both:

  • The new exe: server.exe, explorer.exe.
  • The old exe: server_.exe, explorer_.exe.

Please try again server.exe and explorer.exe. They have been tested successfully on Windows 7 Pro 64. But if they still do not work - you will have to use the old server_.exe and explorer_.exe until the source of the problem is found.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #788
#10
2011-12-09 06:56

Just tried, the versions with underscore in name are running fine, versions without have the same problem as reported earlier.

David

dmarko
dmarko's picture
Joined on 2011-09-22
User Post #6
#11
2011-12-09 07:53

OK. Thanks for the update.

If this is a problem in winrun4j it will probably be solved in their future releases.

Meanwhile both versions (old and new) will be included.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #791

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