This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

java in embedded systems

Other Parts Discussed in Thread: OMAP-L138

Hi, I am wondering if someone knows how to execute java programs (.jar), in omap-l138 processor, once I tried to implement it in an older processor but I couldn't,

I downloaded the java for embedded systems software, but I wasn't able to execute a program that I designed with eclipse, I don't know how to cross-compile the .jar that eclipse generates in order to execute it inside the omap-l138.

I appreciate your attention

  • You need a JVM to be able to run your java applications, and a SDK to be able to compile a jar file. You can download the "ARMv5" version of teh JVM from below site. Choose a headless version if you do not need a display/graphics.

    http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html

    Followed by instructions from discussions like below:

    https://groups.google.com/forum/?fromgroups=#!topic/pandaboard/bb53tEV5GKA

     

  • I am not so sure if this is what you are searching,

    I tried to find this file in Rowboat distribution but it is not there, and it is not indicated what release are you using.

    http://git.omapzoom.org/?p=platform/build.git;a=blob;f=core/build-system.html;h=760589a0f4854b351ea98cb1d6bde64af48d2c7b;hb=HEAD

    or

    https://android.googlesource.com/platform/build/+/master/core/build-system.html

    in this file there is a description about .jar files.

    In next folder you can find the platform library code it is a jar file that contains apk and libraries to use, there is more theory in README.txt (./mydroid/device/sample/frameworks/PlatformLibrary/README.txt) files inside the folder, it requires to register a file in permission folder.

    http://git.omapzoom.org/?p=device/sample.git;a=tree

    or

    https://android.googlesource.com/device/sample/+/master

    There is indicated how to run a jar file that is already part of the system, check code for input application check either next link or folder or use cat for /system/bin/input

    http://git.omapzoom.org/?p=platform/frameworks/base.git;a=tree;f=cmds/input;h=e540f2b9a098ce400af86c71a5fb1ce4ba96a4e8;hb=HEAD

    or

    https://android.googlesource.com/platform/frameworks/base/+/master/cmds/input/

    in this code the binary is set inside Android FS and is part of it then permission are granted from system build, I haven't found other information about those require permission or any other information about jar.

    Using both references just to indicate the location, but it could be needed to indicate the branch too, search for those locations in your source code.