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

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

Notifications You must be signed in to change notification settings

petero-dk/javacrosscompiler

Repository files navigation

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:

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published