Page 1 of 1

Help settings up a server (fails to find java )

PostPosted: Fri Jun 19, 2015 8:48 am
by AyaFederman
Hi,
First, a preface:
I want to be able to use this software for my personal use, the features of the software will be very benificial in my work.
My instatotion doesn't have a server, so I figure to be able to use the software privately I will need to install and run my own server and client.
Now, the problem:
I've tried following the server installation guide (http://www.openmicroscopy.org/site/supp ... ation.html) and am running into a problem.
At the step that says "C:\OMERO.server> bin\omero db script --password root_password" the omero binary says that password is not a valid argument.
I've noticed that "C:\OMERO.server> bin\omero db password" is there and seems to serve the purpose of the command, but running it fails with "Java could not be found. (Executable=java)

I'm trying to run this on a Windows7 machine, I've installed the 64bit versions of all the software and prerequists.
One thing I did notice is that when setting up the environment path I did not have the "x64" subdirs mentioned in the guide, but I'm quite sure the versions I've downloaded are 64bit (ice zip file says "Ice-3.5.1-b3-win-x64-Release")
I've also verified that I've downloaded the correct server for the correct version of Ice.

Any help and advice would be greatly appriciated.
Thanks,
Aya

Re: Help settings up a server (fails to find java )

PostPosted: Fri Jun 19, 2015 11:22 am
by jmoore
AyaFederman wrote:Hi,


Hi Aya

My instatotion doesn't have a server, so I figure to be able to use the software privately I will need to install and run my own server and client.

Correct.
Now, the problem:
I've tried following the server installation guide (http://www.openmicroscopy.org/site/supp ... ation.html) and am running into a problem.
At the step that says "C:\OMERO.server> bin\omero db script --password root_password" the omero binary says that password is not a valid argument.
I've noticed that "C:\OMERO.server> bin\omero db password" is there and seems to serve the purpose of the command, but running it fails with "Java could not be found. (Executable=java)

We should start there; until Java is runnable, you won't be able to get far with OMERO.server.

I'm trying to run this on a Windows7 machine, I've installed the 64bit versions of all the software and prerequists.
One thing I did notice is that when setting up the environment path I did not have the "x64" subdirs mentioned in the guide, but I'm quite sure the versions I've downloaded are 64bit (ice zip file says "Ice-3.5.1-b3-win-x64-Release")
I've also verified that I've downloaded the correct server for the correct version of Ice.

Any help and advice would be greatly appriciated.
Thanks,
Aya


Can you tell us which Java version you installed and how?
Cheers,
~Josh.

Re: Help settings up a server (fails to find java )

PostPosted: Mon Jun 22, 2015 5:13 pm
by AyaFederman
Hi Josh,
Thanks for the reply.

My Java is runable in the sense that it's in the path and I can open CMD, [and from anywhere] type "java -version" to give you the following info:
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)


That's from installing the JDK 8u45, with default installation settings.

---
Edit: further investigating, I've went to the file that prints the error (java.py) and printed the stderr (it really should do that).
I've got the error :
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

According to http://stackoverflow.com/a/10541680, I've just changed the registery value and now that Omero command that failed seemed to work.
I'll brave on with the guide. :)

Thanks again,
Aya.

Re: Help settings up a server (fails to find java )

PostPosted: Mon Jun 22, 2015 7:11 pm
by jmoore
Thanks for letting us know, Aya. I've also filed your suggestion under https://trello.com/c/JhtiHdsi/95-handle-java-error-from-bin-omero-db

All the best,
~Josh.