If you’re looking for an easy way to enjoy Java content on your Chromebook, you’ve come to the right place. We’re going to walk you through a simple guide on how to install the Oracle version of Java on your Chromebook without installing Crouton or other apps. Considering that the Chrome OS can also work with Linux binary codes, we are going to treat the Chrome OS like a Linux OS and make you able run Java on your machine in no time.

Before we begin go ahead and enable Developer Mode on your Chromebook. A guide that can help you with that can be found here.

How To Run Full Java 8 On Chromebook

Step 1

You must open a terminal emulator of Chrome  OS or a chrosh so hit the combo Ctrl+Alt+T and type in the word shell, hit Enter, type in again sudo su and hit Enter again. If everything goes well you will be asked to type in a password, which according to the device’s build should be one of the following: chronos, chrome, facepunch or password.

Note: You won’t see the actual type in, so make sure you don’t make any typos while trying the passwords. As soon as this is done, you have full access to the Chrome shell.

In order to make the file system writable, type in the command: mount -o remount,exec,rw /, hit Enter, type cd /home and hit Enter again.

Step 2

Now you can download Oracle’s Java Runtime, deppending on the type of device you own.

For the 32 bit hardware on Chrome OS, type in the text:

wget http://javadl.sun.com/webapps/downlo…undleId=106238 -O jre.tar.gz” ; type Enter.

For the 64 bit hardware on Chrome OS, type in the text:

wget http://javadl.sun.com/webapps/downlo…undleId=106240 -O jre.tar.gz“; type Enter.

Step 3

Now you have to extract the Archive so type the command tar zxvf jre.tar.gz, followed by Enter, then mv jre1.8* /bin with Enter, next do cd /bin – which will open the executables folder.

The next command is the last one and you must change a number in it to make sure it won’t crash. So, type in:

ln -s /bin/jre1.8.0_45/bin/java /bin/java 

and replace the number 45 here with the version number found on the Java website – for instance, if you find the Java Version 8 Update 49 and not the version number 45, replace it with 49.

That’s all folks you can now run Java on Chromebook! 

Now you can open Java by doing the command java-version – this command will write the version of  Java in the OS and you will be able to enjoy this type of content as well.

Disclaimer: Keep in mind that some Chromebooks might not have a compatible built for Java so attempting this could make your system freeze. If you’ll find yourself in this situation, reboot your device and don’t attempt to install Java on your Chromebook anymore.

Tell us if you’ve tried to execute other Linux binaries on a Chromebook device and how that worked out for you.