Difference between revisions of "Java package"
From ArmadeusWiki
(Java install and run a programm) |
(→Links) |
||
Line 29: | Line 29: | ||
==Links== | ==Links== | ||
− | * [http://jamvm.sourceforge.net/ | + | * [http://jamvm.sourceforge.net/ JamVM website] |
* [http://www.gnu.org/software/classpath/l GNU Classpath website] | * [http://www.gnu.org/software/classpath/l GNU Classpath website] |
Revision as of 15:21, 11 January 2011
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
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.