You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/faq.rst
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ One user reported the following error when installing `pyspi` on a MacBook Air a
19
19
OSError: [Errno 0] JVM DLL not found /Library/Java/JavaVirtualMachines/jdk-19.jdk/Contents/Home/lib/libjli.dylib
20
20
21
21
22
-
This issue is similar to those reported `here <https://stackoverflow.com/questions/71504214/jvm-dll-not-found-but-i-can-clearly-see-the-file>`_ and `here <https://github.com/jpype-project/jpype/issues/994>`_. This issue can arise from the version of OpenJDK identified as the system default
22
+
This issue is similar to those reported `here <https://stackoverflow.com/questions/71504214/jvm-dll-not-found-but-i-can-clearly-see-the-file>`_ and `here <https://github.com/jpype-project/jpype/issues/994>`_; it can arise from the version of OpenJDK identified as the system default. Some Java versions don't include all of the binary (DLL) files that `pyspi` looks for.
23
23
24
24
We recommend following this `helpful tutorial <https://blog.bigoodyssey.com/how-to-manage-multiple-java-version-in-macos-e5421345f6d0>`_ by Chamika Kasun to install `AdoptOpenJDK <https://adoptopenjdk.net/index.html>`_. In a nutshell, here are the steps you should run:
25
25
@@ -33,48 +33,57 @@ Install homebrew if you don't already have it:
33
33
Install `jenv` as your Java version manager:
34
34
35
35
.. code-block::
36
+
36
37
$ brew install jenv
37
38
38
39
39
40
Add `jenv` to your shell's configuration file (e.g. `.bashrc` if you use `bash`):
40
41
41
42
.. code-block::
43
+
42
44
$ export PATH="$HOME/.jenv/bin:$PATH"
43
45
$ eval "$(jenv init -)"
44
46
45
47
Source your shell's configuration file:
46
48
47
49
.. code-block::
50
+
48
51
$ source ~/.bashrc # If you use bash
49
52
50
53
Confirm proper installation of `jEnv`:
51
54
52
55
.. code-block::
56
+
53
57
$ jenv doctor
54
58
55
59
Even if this returns some errors, as long as you see `Jenv is correctly loaded`, you're all set. We recommend using `AdoptOpenJDK` version 11, which you can install with the following command:
Now, you will need to add your `AdoptOpenJDK` path to your `jEnv` environments. First, you can find where your jdk files are installed with the following command:
61
66
62
67
.. code-block::
68
+
63
69
$ /usr/libexec/java_home -V
64
70
65
71
This will list all your installed java JDK versions. Locate the one for `AdoptOpenJDK` version 11 and paste the path:
66
72
67
73
.. code-block::
74
+
68
75
$ jenv add <path_to_adopt_open_jdk_11>
69
76
70
77
Confirm `AdoptOpenJDK` version 11 was added to `jEnv`:
71
78
72
79
.. code-block::
80
+
73
81
$ jenv versions
74
82
75
83
You can set `AdoptOpenJDK` version 11 as your global Java version with the following:
0 commit comments