Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javadoc fails with class file for java.lang.FunctionalInterface not found

Using Android Studio, I am trying to generate the Javadoc. Under Eclipse it worked fine, but under Android Studio I get the error:

javadoc: error - com.sun.tools.doclets.internal.toolkit.util.DocletAbortException: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.FunctionalInterface not found

I am using the Javadoc parameters:

-bootclasspath C:\Users\rehrlich\AppData\Local\Android\sdk\platforms\android-19\android.jar -Xdoclint:none -encoding UTF-8 -docencoding utf-8 -charset utf-8

like image 968
user2325286 Avatar asked Sep 28 '22 07:09

user2325286


1 Answers

Yes. This fails on JDK 1.8. I discovered the change to -bootclasspath was causing the problem. The following -bootclasspath is required:

"$(JAVA_HOME)/jre/lib/rt.jar";$(HOME)\AppData\Local\Android\sdk\platforms\android-19\android.jar 
like image 78
user2325286 Avatar answered Oct 05 '22 06:10

user2325286