Java package

From ArmadeusWiki
Revision as of 15:21, 11 January 2011 by AdrienD (Talk | contribs) (Links)

Jump to: navigation, search

How-To install java on the target and run a java program.


Install java packages GNU Classpath and JamVM

Add the GNU Classpath and JamVM to your target:

 $ make menuconfig   

Goto the buildroot packages and enable the Java package and from the java sub menu select both GNU classpath and JamVM packages. You have to rebuild a new rootfs et update your target

Warning Warning: If your java sub menu is empty then you have to select it first from the upper menu.


Run a java programm

You can run your java program compiled for your host. Upload your jar, zip or class files to the target then use the jamvm command to run your program.

jamvm -jar myprog.jar
If your program requires some other libraries, you will have to install these on the target first or build your program to provide your code and these libraries.

Links