Looking for testers (SLC XML output Java11+)

Daestrum

Expert
Licensed User
Longtime User
I am looking for someone who uses SLC (a lot) to test a new version.

The new version works with the later Javas 21,22,23 ...

I haven't tested it with B4A, but works fine in B4J.
 

Daestrum

Expert
Licensed User
Longtime User
Could you try this please.
 

Attachments

  • SimpleLibraryCompilerV2.zip
    189.9 KB · Views: 88

Daestrum

Expert
Licensed User
Longtime User
This is what I get back from the test lib for SLC

 

tchart

Well-Known Member
Licensed User
Longtime User
I am looking for someone who uses SLC (a lot) to test a new version.

The new version works with the later Javas 21,22,23 ...

I haven't tested it with B4A, but works fine in B4J.
Does it still work with Java 11? Im a big user of SLC.

Is your version open source?
 

Daestrum

Expert
Licensed User
Longtime User
SLC is still the same, I just managed to get the XML part working with later java's (Erel did all the hard work in the Doclet code I just changed a few bits) I havent tried with 11 as I dont have that on my computer.

The source is not in the zip above, the source is still Erels IP.
 

Daestrum

Expert
Licensed User
Longtime User
This is one that works with java 14+

The one in post #3 was compiled with java 23 and threw up errors when using java 14
Runtime (class file version 67.0), this version of the Java Runtime only recognizes class file versions up to 58.0)
 

Attachments

  • SimpleLibraryCompilerV2 (2).zip
    189.9 KB · Views: 61

Daestrum

Expert
Licensed User
Longtime User
This one appears to work with java 11 and above
 

Attachments

  • SimpleLibraryCompilerV2-Java11+.zip
    190.3 KB · Views: 67
Last edited:

Daestrum

Expert
Licensed User
Longtime User
Any feedback appreciated on the xml output in java 11+
 

Daestrum

Expert
Licensed User
Longtime User
Anyone had any problems with the one posted in post #8? (the java 11 one)
 

Daestrum

Expert
Licensed User
Longtime User
To the 18 members who downloaded it - has there been any problems with the generated XML file for the Java 11+ version?.
 

drgottjr

Expert
Licensed User
Longtime User
To the 18 members who downloaded it - has there been any problems with the generated XML file for the Java 11+ version?.
maybe i should wait and repost later since you're asking about the version that works with java 11+. as i'm testing b4a 13 (beta) and since i use slc, i tried the version that works with java 14+, specifically 19.0.2. attached is the result. i then tried it with 14.0.1 (which i happened to have but never used). same result. tried a different project with 19.0.2. same result.

B4X:
with version java 14+:
Starting step: Compiling Java code.
javac 19.0.2

Completed successfully.
Starting step: Creating jar file.
Completed successfully.
Starting step: Creating XML file.
error: option --boot-class-path not allowed with target 19
1 error

Error.
--------------------------------------------------------------------------------------------
Starting step: Compiling Java code.
javac 14.0.1

Completed successfully.
Starting step: Creating jar file.
Completed successfully.
Starting step: Creating XML file.
error: option --boot-class-path not allowed with target 14

Error.
 

Daestrum

Expert
Licensed User
Longtime User
This may be one for Erel, as I don't know what parameters (android) SimpleLibraryCompiler is passing to JavaDoc.
 

Daestrum

Expert
Licensed User
Longtime User
you can try this - I know its not ideal but seems to produce the xml *** FOR B4A ONLY ***

you will need to change the parameters ( this one is for FirstLib test file)

Create a .bat file with the following in the slc folder
B4X:
javadoc -docletpath . -doclet BADoclet -b4atarget firstlib.xml -cp "C:\Program Files\Anywhere Software\B4A\Libraries\*" ./FirstLibrary/src/b4x/example/firstlib.java
pause
 
Last edited:

drgottjr

Expert
Licensed User
Longtime User
so, before trying your suggestion, i tried to build with the version that works with java 11+. i tried with 19, 14 and 11. all gave same result as before;
B4X:
Starting step: Compiling Java code.
javac 11.0.1

Completed successfully.
Starting step: Creating jar file.
Completed successfully.
Starting step: Creating XML file.
error: option --boot-class-path not allowed with target 11

Error.

is anyone other than me testing with b4a 13? i was testing using actual projects, so i decided to try with the firstlibrary example included with the tool. as you may know, it doesn't even compile, due to a "slip of the kotlin" in the last method. no one else is mentioning this. what are others testing? i can't get either version to work.

with luck, erel is checking this thread occasionally. in any case, thanks for your efforts.
 

Daestrum

Expert
Licensed User
Longtime User
Some background, the only difference between the versions is the version of the compiler I used to crreate the doclet classes.

I realized that where I used version 22 for the first attempt, this would cause a problem if someone was using say version 11 (the fun - this class was compiled with a later version message).

So I simply recompiled with an earlier version (11) for the 11+ version.

Running the android SCL


after running the bat file I get


** I may have edited theFirstLib source replace var with int.
 

Attachments

  • FirstLib.xml
    2 KB · Views: 44
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…