Android Question Error while compile for Library creation at Eclipse

Status
Not open for further replies.

AndroidMadhu

Active Member
Licensed User
Hello,
I am getting below error while creation of library for B4A in eclipse.
I am following the below link for library creation :
The below is the error details while compilation at eclipse while generating javadoc:

B4X:
 Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/javadoc/Doclet
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:514)
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:422)
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:416)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:691)
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:415)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at jdk.javadoc/jdk.javadoc.internal.tool.Start.loadDocletClass(Start.java:779)
at jdk.javadoc/jdk.javadoc.internal.tool.Start.preprocess(Start.java:750)
at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:377)
at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:348)
at jdk.javadoc/jdk.javadoc.internal.tool.Main.execute(Main.java:63)
at jdk.javadoc/jdk.javadoc.internal.tool.Main.main(Main.java:52)
Caused by: java.lang.ClassNotFoundException: com.sun.javadoc.Doclet
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:435)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)

Please advice
 

zhousongke

Member
Licensed User
Longtime User
You should specify the correct Javadoc command instead of the default value.
 

Attachments

  • Eclipse_NoClassDefFoundError_com_sun_javadoc_Doclet.png
    Eclipse_NoClassDefFoundError_com_sun_javadoc_Doclet.png
    20.1 KB · Views: 202
Upvote 0
Status
Not open for further replies.
Top