Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (24 loc) · 1.66 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.66 KB

javacrosscompiler

Cross compile newer versions of Java (i.e. 11) to Java8 (and earlier)

Project Download Status
Calimero Project (Core, Device, RXTX) Latest success build Build Status

usage

Run downpile.bat existing.jar

If the jar file has dependencies just make sure they are in the same folder, or pass it as a --lib parameter to downpile like this

downpile.bat existing.jar --lib "lib\nrjavaserial-3.15.0.jar"

The result is found in out/

Other nice stuff

The file build_calimero.bat shows how to build a series of dependent jars.

What does it do

When running downpile it will run Google R8 to turn a jar into a dex file that is compatible with previous java versions. Then use dex2jar to turn that dex file back to a runnable jar. R8 will automatically desugar recent java features and missing classes.

Automagic

The prepare script will: