This message was posted on behalf of Intel Corporation1 of 1 people found this helpful
Using the eglibc image (which can be found in https://software.intel.com/en-us/iot/hardware/galileo/downloads) I was able to install Java on my Galileo and succesfully run the hello world example found in http://introcs.cs.princeton.edu/java/11hello/HelloWorld.java.html. I you are interested in the method I used to install Java, follow these steps:
1. Go to the address /etc/opkg.
2. Modify the files iotdk.conf and mraa-upm.conf so they have the following content:
src iotdk-i586 http://iotdk.intel.com/repos/3.0/iotdk/i586/
src iotdk-intel-core-2-32 http://iotdk.intel.com/repos/3.0/iotdk/intel_core2_32/
src iotdk-quark http://iotdk.intel.com/repos/3.0/iotdk/quark/
src iotdk-x86 http://iotdk.intel.com/repos/3.0/iotdk/x86/
src iotdk-core-2-32 http://iotdk.intel.com/repos/3.0/iotdk/core2-32/
src mraa-upm http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586/
3. Type the command opkg update and let it update the repos on board.
4. Install the latest version available of mraa, upm and Java with the follwing command:
opkg install mraa upm openjdk-8-common openjdk-8-demo openjdk-8-doc openjdk-8-java openjdk-8-jdk openjdk-8-jre openjdk-8-source
Now you should be able to use Java on your Galileo, let me know if this helps you.