arsd.jni
Adam D Ruppe
destructionator at gmail.com
Mon Dec 12 15:03:13 UTC 2022
On Monday, 12 December 2022 at 11:17:47 UTC, jni wrote:
> It's good. But you did the java bindings by hand or is there a
> generator in arsd.jni for that too?
It does it automatically. You compile jni.d with
`-version=WithClassLoadSupport` and then write a main function
that calls `jarToD("path/to/file.jar", "whatever.d.name",
"output_directory", JavaTranslatorConfig(true, true, true));`
Or something like that. It has been 3 years lol. But I put some
docs in there too
http://arsd-official.dpldocs.info/arsd.jni.jarToD.html
http://arsd-official.dpldocs.info/arsd.jni.JavaTranslationConfig.html
For the C .h files, I used the `dstep` program
https://github.com/jacob-carlborg/dstep/
with a bit of hand edits after.
More information about the Digitalmars-d-learn
mailing list