Zen1th 17 Posted May 15, 2020 Share Posted May 15, 2020 A while ago i made a JVM in Lua with the first goal of running Java on OC, just because i like Java and we all know it's a good programming language. So here's the JVM running a program that fills GPU: Oops, made a typo. Ok at first this might not seem impressive at all, but now you can interact with components using Java! That's an awesome thing for Java-ers like me! Race to first Java OS in OC? Anyone? Here's the (simple) code i used above import lukyt.oc.Component; public class ComponentTest { public static void main(String[] args) { String gpu = Component.getPrimary("gpu"); Component.invoke(gpu, "setBackground", new Object[] {0x2D2D2D}); Component.invoke(gpu, "fill", new Object[] {1, 1, 160, 50, " "}); System.out.println("Filled screen with RGB 0x2D2D2D"); } } Here's GitHub page (to download and use on your favourite OC computer): https://github.com/zenith391/lukyt hohserg and Fingercomp 1 1 Quote Link to post Share on other sites
Zen1th 17 Posted May 16, 2020 Author Share Posted May 16, 2020 Just updated the Lukyt Java VM for OpenComputers, i updated a few things and now integer, longs and objects can be printed to output stream. Object hash codes was also fixed. Quote Link to post Share on other sites
Nexarius 22 Posted May 16, 2020 Share Posted May 16, 2020 So we have Java running inside Lua inside Java ? Can it run minecraft? hohserg 1 Quote Link to post Share on other sites
Zen1th 17 Posted May 17, 2020 Author Share Posted May 17, 2020 If you ported Minecraft graphics system (tho rest is prob good) to OpenComputers it could run Minecraft Oh and i would also need to make Lukyt run Java 8, shouldn't be that hard, no? hohserg 1 Quote Link to post Share on other sites
its_meow 6 Posted May 30, 2020 Share Posted May 30, 2020 This scares me. This is terrifying. This should not be allowed. It's mesmerizing Quote Link to post Share on other sites