python-javabridge icon indicating copy to clipboard operation
python-javabridge copied to clipboard

Problems generating the jvm.def file matching to the jvm.dll in setup.py

Open alexmagsam opened this issue 7 years ago • 1 comments

I am having trouble installing javabridge from pip. I recieve this error:

Traceback (most recent call last): File "setup.py", line 402, in ext_modules=ext_modules(), File "setup.py", line 115, in ext_modules p = subprocess.Popen(cmd) File "C:\Users\Alexm\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 709, in init restore_signals, start_new_session) File "C:\Users\Alexm\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

I have jdk1.8.0_181 and jvm.dll is in the correct location (jdk1.8.0_181\jre\bin\server).

alexmagsam avatar Jul 23 '18 18:07 alexmagsam

This problem was solved by typing the commands:

set MSSdk=1 set DISTUTILS_USE_SDK=1

Before attempting to use pip. However, there is a new problem I will post shortly.

alexmagsam avatar Jul 25 '18 23:07 alexmagsam