Starting step: Compiling Java code.
javac 14.0.1
Completed successfully.
Starting step: Creating jar file.
Completed successfully.
Starting step: Creating XML file.
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:1017)
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:758)
at jdk.javadoc/jdk.javadoc.internal.tool.Start.preprocess(Start.java:727)
at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:374)
at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:342)
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)
... 16 more
Yes, I see that the BADoclet class files are already included in the ZIP file and they are already extracted in the same folder where the lib compiler is also present.
I guess, you are right: The java version 14 could be really the problem here.
I switch the version to 11 and I will give feedback asap.
BINGO!!! The java version - now version 11 - was the reason for the classnotfound exception.
B4X:
Starting step: Compiling Java code.
javac 11.0.2
...
...
Completed successfully.
*** Don't forget to refresh the libraries list in the IDE (right click and choose Refresh) ***
I'm learning slc tool, according to SLC FirstLib example it works well. I want to add a member and 2 methods-set ,get. SLC compiled is successfully, but the xml seems to have some problems. B4A refreshing library reports Error parsing libraries - Object reference not set to an instance of an...
I am trying to wrap a WebRTC based library when ever i try to compile the java classes I got this error Starting step: Compiling Java code. C:\Users\fredy\Desktop\libraries\SimpleRtc\src\com\fredy\webrtc\simplertc.java:94: error: static interface method invocations are not supported in...