Sunday, July 28, 2019
Java Development on the BeagleBone Black
Get a JDK:
Then you have all the familiar JRE and JDK tools, like java, javac, jar, etc.
If you are able to install, but there is a dependency error, try to install all of the individual packages:
It might be that your particular distribution don't have those packages in the package list. In that case:
URLs in required installation order:
Download the newest version for armv7a (or all) architecture, example:
Install using: opkg install <filename>
Test:
root@beaglebone:/usr/src/javatest# cat HelloWorld.java
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}
root@beaglebone:/usr/src/javatest# javac HelloWorld.java
root@beaglebone:/usr/src/javatest# java HelloWorld
Hello World!
root@beaglebone:/usr/src/javatest#
|
Subscribe to:
Posts (Atom)