Java on OpenWrt/DD-WRT

后端 未结 4 805
闹比i
闹比i 2021-01-31 20:55

I have an existing solution written in Java which I would love to run on OpenWrt routers. Will OpenWrt even run Java without installing a lot of dependencies? Anyone ever tried

4条回答
  •  生来不讨喜
    2021-01-31 21:45

    I've never done it, but it is definitively possible. You won't be able to run the full Java VM, only specialized versions of it (JamVM, PhoneME, SableVM). Also please be aware that running a Java VM is fairly a lot overhead for this kind of machine.

    I won't get much in detail because others have already done it. Check out these links.

    • http://wiki.openembedded.net/index.php/Java
    • http://wolfpaulus.com/journal/embedded/fonera3
    • http://wolfpaulus.com/talks/openwrt.pdf
    • http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGOpenWRT
    • http://www.oracle.com/technetwork/java/javame/tech/index-jsp-139293.html

    EDIT: SableVM is unmaintained.

    EDIT: As Amigable Clark Kant mentioned, you could compile your Java code to native by using the GNU Compiler for Java.

提交回复
热议问题