[fpc-pascal] my painful way while triing to generate android R33.inc and .pas files

Mgr. Janusz Chmiel mgr.janusz.chmiel at gmail.com
Sat Feb 22 22:15:08 CET 2025


I would like to share my painful results when I have tried to generate 
Android-R33.inc and pas header files by using javappjar.
It even very probably caused my RAM chip to get burned out, because The 
process is so memory allocation hungry and complex.
Please who of us has prepared folders with all .jar files put to gether, 
so I could start to generate?
Unfortunately, The command for generating Android-R33.inc and .pas files 
require from Me to download more and more .jar libraryes including 
touchgrab.jar and many others.
Finding them on various Internet sources is really very exhausted, and 
it causes my RAm chips to get overloaded more and more. Because indexing 
class files is really long time task. And after 10 minutes or more I AM 
getting new and new message that some .jar library can not be found.
Please MR Bart, Mr Jonas and others.
Does somebody of us have prepared folders structure with all .jar files? 
You could send it not only to Me as a .zip archive.

If no, please atleast send Me The list of all .jar libraryes, which The 
following long command line enforces so I will not lost my second 
laptop, if RAM or motherboard gets burned out after running The command 
again and again while getting newer and newer messages, that some .jar 
library can not be found.

To create the rtl/android/jvm/androidr14.pas and 
rtl/android/jvm/androidr14.inc files, use

java -jar javap.jar -bootclasspath android.jar -extdirs . -protected -x 
java.lang.System -x java.lang.Object -x java.io.Serializable -x 
java.io.IOException -x java.io.IIOException -x java.lang.Readable -x 
java.lang.Float -x java.lang.Double -x java.lang.Float -x 
java.lang.Double -x java.lang.Byte -x java.lang.Short -x 
java.lang.Integer -x java.lang.Long -x java.lang.Boolean -x 
java.lang.String -x java.lang.StringBuilder -x java.lang.StringBuffer -x 
java.lang.CharSequence -x java.lang.AbstractStringBuilder -x 
java.lang.Appendable -x java.lang.Number -x 
java.lang.IndexOutOfBoundsException -x java.lang.RuntimeException -x 
java.lang.IllegalArgumentException -x java.lang.IllegalStateException -x 
java.lang.UnsupportedOperationException -x java.lang.Exception -x 
java.lang.Throwable -x java.lang.LinkageError -x java.lang.Error -x 
java.lang.Comparable -x java.lang.Character  -x java.text.Collator -x 
java.lang.Cloneable -x java.lang.Runtime -x java.lang.ThreadLocal -x 
java.math.BigInteger -x java.util.Comparator -x jav

Thank you very much for some advices or for prepared folder structure 
with all required .jar files.
Sure I Am really not An llazy man.
I have found several .jar libraryes but many others are very probably 
required by The command.



More information about the fpc-pascal mailing list