Run error on Windows - Java not found


#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)