How to set up Java

Java, in its original conception, was meant to be independent of hardware which is of course exactly the opposite philosophy to the Raspberry Pi. There has however always been an intimate relationship between hardware and Java with much early discussion of Java on a chip and with the interpreted bytecode produced by the Java compiler looking horribly like machine code with some dramatic exceptions. It is not slow - one has to be a pretty good C programmer to write C that is faster than byte code produced by the javac optimisers; it's is fussy to set up so that it finds the relevant class files. This page is intended to condense the discussion on the Java forum pages[]

Using Oracle's Java recommended for the Raspberry Pi
See the Oracle article []