Skip to content

francogrex/sdroid

Repository files navigation

sdroid

This is a jscheme interpreter and a java compiler for android. It has the ability to interpret and compile java code to class -> dex/jar using ecj compiler and dx - the java compilance level however is at 1.5 (problems to have java 8 or 9 compilation directly on the android platform are well known). Although a newer version of the app with an intergrated javac 11.0.16 compiler is available.

features

  • Scheme interpreter
  • Access to methods, contructors, and fields of java/android classes
  • Compilation of java code
  • run a foreground server
  • Interacts with NDK executable programs
  • Includes two associated editors
  • Dependencies and installation

    ecj.jar and dx.jar for compilations are included. A newer version include a newer javac 11.0.16 compiler instead of ecj. An external editor app should be installed. I use com.aor.droidedit.pro, if you like to use another editor simply replace your package new in here: Scheme.context.getPackageManager().getLaunchIntentForPackage("com.aor.droidedit.pro");

    To install, create an apk (either from command line, for example see build-instructions.sh, or using the studio). After installing the apk, create a folder on your phone: /sdcard/Download/java and within three subfolders code, compile and libs (this is for the apps you will create) You will need a android.jar used for compilation, put it in and as: /sdcard/Download/java/android.jar

    Use Instructions and Examples

    Several examples to make android applications to be added soon. This below shows how to compile a java program and load it to use.

    jscheme

    This is a chess GUI app for playing and teaching chess. It uses stockfish executable (NDK compiled) running on the device

    jscheme

    About

    jscheme interpreter and compiler

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages