Closed dourouc05 closed 3 years ago
Do earlier versions of Julia or Java have a similar problem?
My suspicion is that jvm.dll depends on another DLL which is not on the Windows path.
I already tried Julia 1.5.3 and JDK 15.0.2 (all x64), on another machine (still Windows 10), without troubles:
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.5.3 (2020-11-09)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using JavaCall
julia> JavaCall.init()
julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake-avx512)
Does this work in Julia 1.6?
using Libdl
Libdl.open(raw"C:\Program Files\Java\jdk-15.0.2\bin\server\jvm.dll")
If not we may need to create an issue for Julia itself.
It works on both machines. The first one (for which I opened this issue) just updated from Windows 10 1909 to 2009, and the issue no more happens.
You are blowing my mind a bit. It sounds like the issue was resolved by a Windows update. Should we close this issue then?
Maybe that version of the JDK was built with a Windows SDK that didn't support Windows 10 1909? That would be strange, but possible.
Well, at least, if someone has the same issue, then it's somewhat documented!
I just installed the latest JDK x64 from Oracle (https://download.oracle.com/otn-pub/java/jdk/15.0.2+7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_windows-x64_bin.exe, to be precise) on Windows 10, along with Julia 1.6 RC1 x64. However, loading the package fails:
The
jvm.dll
file exists: