Run error on Windows - Java not found

cellprofiler

#1

Hi,

I have an issue running the latest 3.0.0 on Win 7.

C:\Program Files (x86)\CellProfiler>CellProfiler.exe
No handlers could be found for logger "javabridge.locate"
Traceback (most recent call last):
File “CellProfiler.py”, line 3, in
File “c:\users\admini~1\appdata\local\temp\2\pip-build-wsqbac\pyinstaller\PyIn
staller\loader\pyimod03_importers.py”, line 389, in load_module
File “CellProfiler\cellprofiler_main_.py”, line 1, in
File “c:\users\admini~1\appdata\local\temp\2\pip-build-wsqbac\pyinstaller\PyIn
staller\loader\pyimod03_importers.py”, line 389, in load_module
File “site-packages\bioformats_init_.py”, line 21, in
File “c:\users\admini~1\appdata\local\temp\2\pip-build-wsqbac\pyinstaller\PyIn
staller\loader\pyimod03_importers.py”, line 389, in load_module
File “site-packages\javabridge_init_.py”, line 28, in
File “c:\users\admini~1\appdata\local\temp\2\pip-build-wsqbac\pyinstaller\PyIn
staller\loader\pyimod03_importers.py”, line 389, in load_module
File “site-packages\javabridge\jutil.py”, line 149, in
File “site-packages\javabridge\jutil.py”, line 137, in _find_jvm
javabridge.jutil.JVMNotFoundError: Can’t find the Java Virtual Machine
Failed to execute script CellProfiler

Java is easily found…

C:\Program Files (x86)\CellProfiler>java -version
java version "1.8.0_161"
Java™ SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot™ Client VM (build 25.161-b12, mixed mode, sharing)

Has anyone seen (and fixed) this?

J


#2

Hi,

Are you running 32 bit or 64 bit Java? Here’s what my machine says (emphasis added)…

java -version

java version "1.8.0_161"
Java™ SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot™ 64-Bit Server VM (build 25.161-b12, mixed mode)


#3

Hi,

I was able to work with CellProfiler 3.1.5 until yesterday, when I was trying to open it and it wouldn’t open. I had the same error as JDunham using Win 7:

Traceback (most recent call last):
File “CellProfiler.py 2”, line 3, in
File “c:\users\admini~1\appdata\local\temp\2\pip-build-wsqbac\pyinstaller\PyIn
staller\loader\pyimod03_importers.py”, line 389, in load_module
File “CellProfiler\cellprofiler_ main .py”, line 1, in
File “c:\users\admini~1\appdata\local\temp\2\pip-build-wsqbac\pyinstaller\PyIn
staller\loader\pyimod03_importers.py”, line 389, in load_module
File “site-packages\bioformats
init .py”, line 21, in
File “c:\users\admini~1\appdata\local\temp\2\pip-build-wsqbac\pyinstaller\PyIn
staller\loader\pyimod03_importers.py”, line 389, in load_module
File “site-packages\javabridge
init _.py”, line 28, in
File “c:\users\admini~1\appdata\local\temp\2\pip-build-wsqbac\pyinstaller\PyIn
staller\loader\pyimod03_importers.py”, line 389, in load_module
File “site-packages\javabridge[jutil.py 2](http://jutil.py/)”, line 149, in
File “site-packages\javabridge[jutil.py 2](http://jutil.py/)”, line 137, in _find_jvm
javabridge.jutil.JVMNotFoundError: Can’t find the Java Virtual Machine
Failed to execute script CellProfiler

I tried different options but none of them worked:

  • reinstall CellProfiler 3.1.5 (32-bit)
  • reinstall java (JDK x86) and reinstall CellProfiler 3.1.5 (32-bit) / in C: Program Files(x86) both
  • reinstall java (JDK x64) and reinstall CellProfiler 3.0.0 (64-bit) / in C: Program Files both

Do you have any suggestion?

Thank you!
Sandra