Is there a way to compile BrickPI program in Java?

Is there a way to compile BrickPI program in Java without executing and deploying to the brick.
Because I have to add some external libraries also.

Thank you.

1 Like

AFAIK, all the Dexter Industries and/or Modular Robotics robot code is written in Python and I have no idea how to cross-compile Python into Java.

It may be possible to call a Python module and/or library from Java, but you will have to research that yourself as it has been, literally, decades since I’ve messed with pure Java.

The only exception to this that I know of is browser-side code which is often in JavaScript and/or a browser script that’s uploaded to the browser at runtime.

If you figure out how to do this, please post the results here so everyone can learn from your experience.

Thanks!

1 Like