owainlewis / clojure-mail

A Clojure library for parsing, downloading and reading email from IMAP servers.
203 stars 54 forks source link

Unable to find static field: SIZE in class javax.mail.FetchProfile$Item #66

Closed mjmeintjes closed 5 years ago

mjmeintjes commented 5 years ago
1. Caused by java.lang.RuntimeException
   Unable to find static field: SIZE in class javax.mail.FetchProfile$Item

2. Unhandled clojure.lang.Compiler$CompilerException
   Error compiling clojure_mail/folder.clj at (64:14)
   #:clojure.error{:phase :compile-syntax-check,
                   :line 64,
                   :column 14,
                   :source "clojure_mail/folder.clj"}
 java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
org.clojure/clojure {:mvn/version "1.10.0"}
io.forward/clojure-mail {:mvn/version "1.0.7"}
mjmeintjes commented 5 years ago

There was an old version of javax.mail.mailapi lying around for some reason. The following command fixed the problem (it seems):

rm -rf ~/.m2/repository/javax/mail/mailapi/1.4.3