Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Embedded Application - What is needed on the device

I am trying to deploy a Java application on an embedded device (just a simple "Hello World" would be a good start).

On my host machine (Linux x64) I have downloaded the Java ME tool, and together with the JDK I have created the so called Java IMlet class, the Jar and the JAD files, as pointed out in the guide.

The tutorial shows at the end how to run the example by emulating the embedded system, but I want to run the application on the embedded system.

My question is, now that I have created all the files described in the guide above (Jar,Jad,Manifest,.Class), what are the minimal requirements I need to have on my target embedded system (ARM Linux) in order to run the application? And how to run it? Do I need the JVM, or a JRE installed on the embedded device?

Sorry if the questions seem really basic, but I am a total beginner with Java (know well C++).

like image 359
Carlo Benussi Avatar asked Jul 06 '26 11:07

Carlo Benussi


1 Answers

I switched on downloading the JRE headless for ARM (which has a footprint of about 35-40 MB, and is acceptable to me).

This way I am building the application on my host Linux x64, and then via ssh I send the JRE plus the compiled *.class file to my embedded system. To run I then just use the "java" command under the bin directory.

like image 155
Carlo Benussi Avatar answered Jul 09 '26 07:07

Carlo Benussi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!