Menu

How to run DavMail without Java installed?

Kunal
2013-09-27
2013-09-30
  • Kunal

    Kunal - 2013-09-27

    I'm on Windows 7 SP1, 32-bit/x86, and I don't have Java "installed". That is, I have Java 1.6.0_45 (JDK & JRE) in a folder, but not in the registry. In effect, my Java is a portable version.
    I've set JAVA_HOME, PATH to JDK\bin and CLASSPATH as my environment variables, but DavMail refuses to run, giving me the error "A suitable version of Java could not be found on your system".
    How can I run DavMail in this case?
    Thanks in advance.

     
  • Mickael Guessant

    You may try to create a davmail.ini file in davmail.exe directory with the following content, adjust vm.location to your JDK path :
    main.class=davmail.DavGateway
    classpath.1=davmail.jar
    classpath.2=lib/activation-1.1.1.jar
    classpath.3=lib/commons-codec-1.3.jar
    classpath.4=lib/commons-collections-3.1.jar
    classpath.5=lib/commons-httpclient-3.1.jar
    classpath.6=lib/commons-logging-1.0.4.jar
    classpath.7=lib/htmlcleaner-2.2.jar
    classpath.8=lib/jackrabbit-webdav-2.4.3.jar
    classpath.9=lib/jcharset-1.3.jar
    classpath.10=lib/jcifs-1.3.14.jar
    classpath.11=lib/jdom-1.0.jar
    classpath.12=lib/log4j-1.2.16.jar
    classpath.13=lib/mail-1.4.3.jar
    classpath.14=lib/slf4j-api-1.3.1.jar
    classpath.15=lib/slf4j-log4j12-1.3.1.jar
    classpath.16=lib/stax-api-1.0.1.jar
    classpath.17=lib/stax2-api-3.1.1.jar
    classpath.18=lib/swt-3.7-win32-x86.jar
    classpath.19=lib/woodstox-core-asl-4.1.2.jar
    classpath.20=lib/xercesImpl-2.8.1.jar

    vm.version.min=1.6
    vm.location=path/to/jvm
    vmarg.1=-Dsun.net.inetaddr.ttl=60
    vmarg.2=-XmX512M

    [ErrorMessages]
    java.not.found=A suitable version of Java could not be found on your system, please install Java from http://java.com
    java.failed=Java failed to startup successfully, please install Java from http://java.com

     

Log in to post a comment.