How to Install and Use Java On Chromebook
- Go to your profile picture in the lower right-hand side of your Chromebook and click on it.
- Then, click on the gear icon, which brings you to your Chromebook settings.
- Scroll down to the Show Advanced Settings link, which is highlighted in blue. Click on it.
- Then, go down to Privacy Settings and click the gray Content Settings button.
If you want to put a full-fledged Java installation on your Chromebook, however, then there are some additional steps to take. You should also keep in mind that your Java installation may be unstable, or it may not work at all; Chromebooks are designed for people who only need access to the basics, so they’re relatively simple and pared-down when compared to other operating systems. But if you decide that you still want to try installing Java itself, proceed with caution.
Install Java on Your Chromebook
After putting your Chromebook device in developer mode and logging in to your device, you’ll proceed to open the command shell; it’s similar to the Terminal you would use with Windows or Mac. Press the Ctrl + Alt + T keys on the keyboard, to open the Crosh shell. Then, type ‘shell,’ which opens the full bash shell. (Don’t worry if you don’t know the difference between these shells; it isn’t important for this tutorial.) Now you’ll be able to run commands with sudo.
- Type “sudo su” (no quotes) and press Enter on your Chromebook’s keyboard.
- You’ll be prompted for a password. Depending on the Chrome OS build you are using, the password could be “chronos”, “chrome”, “facepunch”, or “password”. If you’ve set your own shell password previously, it may be that password.
Next, you’ll need to make the system file writable.
- Type “mount -o remount, exec, rw/” then press the Enter key on your keyboard.
- Type “cd /home” and press Enter again.
You’ll download the Java 8 application from Oracles website. If you have a 32-bit device:
- Type “wget http://javadl.sun.com/webapps/downlo…undleId=106238 -Ojre.tar.gz” then press Enter.
If you’ve got a 64-bit Chromebook device:
- Type “wget http://javadl.sun.com/webapps/downlo…undleId=106240 -Ojre.tar.gz” then press Enter.
The next step is to extract the file you’ve just downloaded. To do that:
- Type “tar zxvf jre.tar.gz” and then press Enter on the keyboard.
- Type “mv jre1.8* /bin” and press Enter.
- Type “cd/bin” and press Enter; that will open the executable folder on your device.
- Type “1n -s/bin/jre1.8.0_45/bin/java/bin/java” and press Enter (but replace the number 45 with the number of the Java version found on the Java website).
If everything has gone according to plan you should now be able to run Java on your Chromebook device. Keep in mind, that’s if everything has gone according to plan.
Type “java-version” in the shell to write the version of Java you’ve just installed into the Chrome operating system.
Please note that installing Java may not work on all Chromebooks because of compatibility issues. Your system could freeze and become unresponsive. If this happens, reboot your device; it’s probably not compatible with Java.