Problem installing Oracle Java on BBB

Hello All;

I am currently using Ubuntu 14.04 LTS on my Bev C Beaglebone Black.

I followed the instructions at the following link:

“For Debian, download the “Linux ARM v6/v7 Hard Float ABI” version.”

I installed the package in my /root/ directory and entered the following from the terminal:

export PATH=$PATH:/root/jdk1.7.0_60/bin

export JAVA_HOME=/root/jdk1.7.0_60

I then entered:

root@ubuntu-armhf:# java -version

java version “1.7.0_60”

Java™ SE Runtime Environment (build 1.7.0_60-b19)

Java HotSpot™ Client VM (build 24.60-b09, mixed mode)

I then attempted to run Derek Molloy’s simple test program:

doing a quick google on the error it seems you are trying to run the .java file without first compiling it!

you need to compile Test.Java to bytecode using the javac command.


this will produce a file Test.class which you can then run using

java Test

other magic number errors can be caused by compiling with a more recent version of javac than the runtime. eg if you compile on your desktop using jdk8 and then run using jdk7. you can override the target option (see