Menu

DavMail can't find suitable Java version under Win 10

Help
2020-05-28
2022-05-31
  • Jonathan Gilligan

    I have Zulu JRE FX installed and it's on my path, but DavMail can't find it.

    C:>java -version
    openjdk version "13.0.3" 2020-04-14
    OpenJDK Runtime Environment Zulu13.31+11-CA (build 13.0.3+3-MTS)
    OpenJDK 64-Bit Server VM Zulu13.31+11-CA (build 13.0.3+3-MTS, mixed mode, sharing)
    
    C:>which java
    /c/Program Files/Java/zulu13.31.11-ca-fx-jre13.0.3-win_x64/bin/java
    

    But when I install DavMail 64-bit and try to launch it, I get the error dialog, "A suitable version of Java could not be found on your system"

    I also tried installing the Oracle JRE release

    C:>java -version
    java version "1.8.0_251"
    Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
    Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode, sharing)
    
    C:>which java
    /c/Program Files (x86)/Common Files/Oracle/Java/javapath/java
    

    And I get the same error from DavMail.

    I'm running Windows 10 Education, version 1809, on a Core i7 machine with 16 GB RAM.

     
  • Jonathan Gilligan

    I solved the problem following the advice here: https://sourceforge.net/p/davmail/discussion/644057/thread/e07e7d1836/#ec6b

    1. Download the DavMail repository from GitHub (clone it or download as a ZIP file and unzip it)
    2. Go to the src/winrun4j directory
    3. Edit the .ini files (e.g., davmail64.ini) and add the following line:
    vm.location=/Program Files/Java/zulu13.31.11-ca-fx-jre13.0.3-win_x64/bin/server/jvm.dll
    

    using the path to thejvm.dllof your Java installation
    4. Run

    rcedit64.exe /C davmail64.exe
    rcedit64.exe /I davmail64.exe davmail.ico
    rcedit64.exe /N davmail64.exe davmail64.ini
    

    and repeat similarly for the other .exe files, such as davmailservice64.exe (use rcedit.exe for the 32-bit versions and rcedit64.exe for the 64-bit versions)
    5. Copy the updated executable files to the installation directory (c:\program files\DavMail).

     

    Last edit: Jonathan Gilligan 2020-05-28
  • SteveM

    SteveM - 2021-07-23

    I found that simply installing the 32bit version of Davmail works fine, but the 64bit version can't find Java installed (even though I have a 64bit version of java jvm installed). Hope that helps someone - it was simple enough just to install Davmail as 32bit and given the functionality of the utility, I can't see how it makes much difference either way.

     
    👍
    2
  • Marc Elser

    Marc Elser - 2021-09-06

    Installing 32bit version solved the issue also for me. To be honest updating the files with rcedit64.exe is just not suitable and I don't get why davmail just can't get this issue sorted out once and for all. It's been there for years actually and still 64-bit win version is failing to detect proper jvm. I guess they just don't care

     
  • Valdis Vitolins

    Valdis Vitolins - 2022-05-11

    For me worked installation of Oracle 8 32-bit JDK and DavMail 32-bit version.

     
  • Carter Persall

    Carter Persall - 2022-05-31

    What I found that worked is to install DavMail, then open the executables in a text editor and search for 'vm.location=' and replace the following path with the path to my jvm.dll. The alternative method would be to place a portable JDK into a folder named 'JVM' as that's where it looks by default.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.