Get Java on your Chromebook (The Easy Way) – 2019

Get Java on your Chromebook (The Easy Way) – 2019

So, you want to install Java on your Chromebook.

Maybe you want to play some games like Minecraft or various Steam games. Or you just want to run some web pages that require Java.

Regardless, this tutorial will show you how to get Java on your Chromebook. I’ll show you how to download, install, and run Java in just a few steps.

This should take no longer than an hour and I’ll go over it step-by-step.

Note that this does require some technical knowledge and coding, but it’s okay.

But don’t worry, this tutorial is written so that even a total newbie can follow along!

Sound good? Let’s get Java on your Chromebook!

Last updated: 8/5/19.

This method is still working as of 2019. If you have any problems getting Java running, leave me a comment and I’ll check it out. You’ll need at least Java 8 to run most modern programs on Linux using your Chromebook.

How to enable Java on Chrome OS

First off, you can’t. But we have a secret, juicy workaround.

That’s the simple answer. Chrome OS is built for security, so third-party programs, installations, and Java Runtime Environment (JRE) are all disabled and blocked within Chrome OS. So basically, Chromebooks can’t run Java by default.

Are there ways to get around it? Yes. The easiest way is to install Linux, which you can think of as another operating system. Chrome OS is one and Linux is another. Linux allows Java. Chrome OS doesn’t allow it. We want Linux.

To get Linux, we’ll have to do a few things like enable Developer Mode, which allows you to perform more functions on your Chromebook. Think of it like administrator privileges on your device. This will let us run the command line, which is what we’re most interested in. Don’t worry if you don’t know the first thing about coding- I’ve got you covered =]!

Installing Java without Crouton/Linux

This used to possible, but now not so much anymore. Back in 2015, there was a way to install Java on a Chromebook without using Linux, Ubuntu, and Crouton, but required major tweaks and adjustments- much more than it’s worth nowadays since it’s not guaranteed to work.

It’s much easier to just stick with the nearly 100% working method of using Linux and Ubuntu to run Java on your Chromebook. This method works for the majority of Chromebooks and is pretty easy to do (that’s if you use this awesome tutorial =]!).

With Linux, you can run java and do a bunch of other things, like running Java games or installing and playing Steam games such as:

So, Linux is the way to go!

Ready to get started? Let’s go.

Check your hardware

The first thing we need to do is make sure your Chromebook meets the hardware requirements. This is pretty simple to do and only requires a few steps.

We’ll be installing Linux on your machine, because that’s the only way to get Java running.

Intel only, folks

For starters, you’ll need an Intel-powered Chromebook. I’m sure you know how to tell what you’re running, right?

If not, don’t worry. Here’s a quick way to find out:

  • Look for the Intel sticker
  • Look on the bottom panel for Intel logos
  • Search your Chromebook’s make/model online for stats
  • Go in the Chrome browser and type in “chrome://settings” in the URL bar and hit Enter. Look for “cpu” and see what processor you have.

It doesn’t matter if you have an Intel Celeron, Pentium, m3, i3, i5, i7 or whatever else. As long as it’s Intel, you can get Linux.

RAM/Storage

RAM and storage aren’t that important. A basic setup of 2GB of RAM and 16GB of SSD storage is enough. Don’t worry too much about this one.

16GB of storage is enough to install Ubuntu but doesn’t leave much space for much else. Expect to use up about 8GB for Linux, apps, games, programs, etc. you’ll be splitting the space in half for both Linux and Chrome OS, so if you have to be someone who downloads a lot of apps, games, doc’s, videos, images, etc. You may want to install Linux on a separate drive.

If you don’t want to install Linux directly on your machine, you can use install Linux on a USB drive to plug into your Chromebook. You can do so.

Make a back up of your Chromebook

The first thing you’ll want to do is to make a backup of all your important data. Doing this process will wipe your Chromebook (AKA Powerwash it), so save all your important stuff first.

You can back up your Chromebook in two ways:

  • Back up everything to an external drive (thumb/flash, hard drive, etc.)
  • Backup everything to a cloud provider (Google Drive, Dropbox, etc.)

Backing up to Google Drive is a lot easier since you don’t need to mess with anything other than your Chromebook. Using an external drive requires some fiddling if it’s not a popular drive (Chrome OS seems to only recognize the popular drives), and using something like Dropbox requires that you sign up and make an account (who has time for that?). Google Drive is already created for you since you have a Google account and everything can be backed up instantly.

Using Google Drive

You can access your Drive here. Backing up is easy. Just launch the Files app on your Chromebook and drag and drop the objects into the Drive folder on the left-hand menu.

Using an external drive

Backing up to an external drive should work the same way. Just plug in the USB drive or SD card and drag and drop the files into the left-hand menu and you’re done! If you don’t have one that’s compatible with Chrome OS, you can check out this buyer’s guide.

You should back up all your data that you want to keep, including stuff in your Downloads folder or custom folders/directories you’ve created. Note that all your Google Account data will remain intact. You won’t lose anything like Gmail and such. Only offline local data is wiped- this includes Chrome apps, Chromebook apps, Play Store apps, and your Chromebook settings.

Should you get stuck, you can check out this guide on backing up your data. It covers everything you need to know!

Okay, so you’ve gotten all your stuff saved. Right? Time to proceed to the next step!

Enable Dev Mode

Turning on Developer Mode on your Chromebook is super easy.

All you need to do is follow this guide. When you’re done, come back here and continue. I’ve written about the process so many times I could write it in my sleep!

If you want the basics, here’s how:

Step 1: Press “CTRL + REFRESH + Power Button” together until your Chromebook restarts automatically.

Step 2: It’ll then show a warning message after it reboots. Press “CTRL + D” after reading it.

Step 3: Press Enter to turn off OS Verification.

Step 4: Your Chromebook will reboot with a new warning telling you that OS Verification is OFF. This is good. This will let us enable Developer Mode.

Step 5: Read the prompt and press “CTRL + D” again when you’re done.

Step 6: Your Chromebook will enter Developer Mode. This may take up to 20 minutes. Be patient.

Step 7: After a final reboot, you’ll be able to login to your newly Dev Mode-enabled machine! Have fun!

Now that you’re in Developer Mode, you can install Ubuntu Linux, which will let us get Java on your Chromebook.

Install Ubuntu

We’ll be installing Ubuntu Linux in this tutorial because it’s the most well-supported and documented version of Linux. And I’ll be installing the Xfce desktop- it’s a minimalist version of Ubuntu so it doesn’t hog all your Chromebook’s resources so you can run Java and actually do what you want to do with it- play games, etc.

You can install other distros like KDE if you want a more modern desktop. Check out this Linux tutorial for more information.

Otherwise, just follow along and let’s get Linux installed on your Chromebook.

So the first we’ll need to get is Crouton. This is the “program” that installs Linux. You can get Crouton here. After you download it, make sure it’s in your Downloads folder or else the code won’t work!

After you download Crouton, press “CTRL + ALT + T” to launch the command line.

You’ll see a black and white window pop up that looks similar to MS-DOS for those nerds out there (me being one of them =]). When you see this, type in the following command exactly as shown- without the quotes:

“shell”

“sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crout”

“sudo crouton -t xfce”

Crouton will then install Linux. This takes some time, so be patient.

After it’s done, type the following to launch Xfce:

“sudo startxfce4”

And you’re in! Congrats. You’ve installed Xfce on your Chromebook. If you get stuck, leave a comment and I’ll get back to you ASAP.

Install and enable Java on your Chromebook

And now for the fun part. Getting Java!

We’ll be installing the default JRE/JDK. This will run Java programs required on Linux. We’re going to install Default OpenJDK, which is the currently the newest version of Java for Linux.

This would be Java 11 at the time of this writing. Getting the latest version of Java can always improve framerate and smooth out your experience!

Installing it is super easy.

You can do so with just a few lines of code. So here’s how to get Java on your Chromebook:

  • Press “CTRL + ALT + T” to launch the command prompt (in Linux).
  • First, let’s update the package index. You can do this by typing in “sudo apt update” and hitting Enter.
  • Type “sudo apt install default-jdk” and hit Enter.
  • If you’re prompted to type in your password, go ahead and type it in.
  • Afterward, the files will install automatically. Be patient.

That’s it. You now have Java Runtime installed on your Chromebook!

Other ways to install Java

Didn’t work? Try these commands instead.

Install OpenJDK 8

This is a good backup if the previous section didn’t work for you. This will install OpenJDK 8, which is still a commonly used version of Java.

Launch the command terminal and type in these two commands:

  • sudo apt update
  • sudo apt install openjdk-8-jdk

Install the Java Development Kit

You can install the JDK to run Java programs or compile them on Linux. JDK contains the JRE, so you should be able to run all Java programs on your Chromebook.

To install it, launch the command prompt and type the following command:

  • sudo apt-get install default-jdk

Then hit Enter. It’ll install automatically.

Installing Oracle Java

Try installing the Oracle JDK. If OpenJDK didn’t work, you can use the basic Oracle JDK which is officially distributed by Oracle, the company that developed Java.

Launch your command prompt and type in the following commands:

  • sudo apt install software-properties-common
  • sudo add-apt-repository ppa:linuxuprising/java
  • sudo apt update
  • sudo apt install oracle-java11-installer
  • Read and agree to the terms of use (ToU)
  • Java will then install on your system!

If you’re still getting problems, leave a  comment and I’ll get back to you ASAP!

You now have Java on your Chromebook!

Congrats! You’ve not successfully installed Java on your Chromebook and you can play Java-based games, do Java-based work, or visit Java-based sites.

If you couldn’t get it working, just let me know by leaving a comment.

If you found this tutorial to be helpful, leave a  comment and let me know. Consider telling a fellow Chromebook owner and being a hero =].

Thanks for reading!

About Andy Z.

Andy is a casual-hardcore Chrome OS fan and contributes to the site regularly. He likes computers, tech, sports cars, videogames, and of course, Chromebooks. Thinker. Introvert. Geek. You can find him on Twitter (@platytech), or send him an email (platy@platypusplatypus.com).

43
What do you think?

avatar
22 Comment threads
21 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
36 Comment authors
daveAlexKRONOSEllieAndy Z. Recent comment authors
Newest Oldest Best
dave
GUEST
dave

it wont let me type a password what does it mean i type the first sentences but after i click enter for the 3rd one it say i need a pass word and it wont let me type password i did do developer mode

Alex
GUEST
Alex

Hey there!
I have a question about crouton. If I install Linux and java (and other apps) while in Developer Mode and then re-enable the OS Verification, will I still be able to use the chroot I just installed? Or will re-enabling the OS Verification and rebooting delete everything I just installed?

KRONOS
GUEST
KRONOS

Hey Andy,
I am using a Samsung xe303c12 Chromebook, it uses the Samsung Exynos 5 processor. With this Chromebook, is there any way I can get Java?
Thanks

Ellie
GUEST
Ellie

Hi Andy,
I followed your directions from the beginning and am now on the installing and enabling Java step. I have confirmed that I am in Developer mode, and my chromebook is not under my work or school. I typed Ctrl+Alt+T and then shell, and then sudo apt update. The message reads sudo: apt: command not found. \What I want is to be able to use the Java Development Kit because it is a requirement for an online course I am taking.
Thank you.

natalie
GUEST
natalie

Hi Andy. I keep getting an error that says unknown command: sudo, how do i fix this?

Scott M
GUEST
Scott M

Hi Andy. I successfully installed Java using the default-sdk in the new Linux (beta) terminal. However, I am a Linux newbie. How can I install a web browser that runs in the Linux sandbox?

Muddassir Saeed
GUEST
Muddassir Saeed

hello im pretty new to this stuff and every time i type one of your code in it says ERROR: unknown command: sudo

Jukas
GUEST
Jukas

Hello,
question: since now you can enable Linux straight without developer mode and enable crostini, is it possible to skip the whole section related to cruton and jump straight to the java installing section through the terminal?

thanks in advance

Pythonisbetter
GUEST
Pythonisbetter

yes via crostini you can skip right to installing the package “default-jdk” one tip: if you don’t know whether a package exists use “apt-cache search” followed by the package name

posiblyLopsided
GUEST
posiblyLopsided

so i installed linux (beta) and i was not able to download the first java that is listed but the second i was. i dont know how to use it though. not in dev mode. im trying to use optifine for minecraft

Anonymous
GUEST
Anonymous

i cant run command ‘sudo’

Sidhanth
GUEST
Sidhanth

My samsung chromebook can’t even get crouton

Help me please
GUEST
Help me please

my chromebook wont seem to go into developer mode. ive tried what you said to do several times and it wont work.

Help m
GUEST
Help m

I also tried to do it without being in dev mode because after downloading crouton but crosh says “ERROR: unknown command: sudo” and gives me the same when it type “shell” but instead says “ERROR: unknown command: shell”

Sidhanth
GUEST
Sidhanth

Me too

Army
GUEST
Army

hi when I put “startxfce4” its not working please help!

sophie
GUEST
sophie

Ok, so im one of those newbies. I made it to the enter developer mode part, OS verification is off. I downloaded crouton, it pops up in my file. when i click on ctr alt T, crosh pops up, i entered the code you enlisted and it keeps saying unknown command. what am i doing wrong?

Weston moody
GUEST
Weston moody

I’ve downloaded crouton got Xfce installed and running .. even have java installed which I’ve checked using “command java -version” but whenever I go to run the program needing java it still says I need java

olive
GUEST
olive

java wont run

cregox
GUEST
cregox

so, on the new linux beta (still on the secure chromebook, i.e. not on the dev channel!) i just opened up the terminal and i was trying to install a package with dpkg, which required java and other crap.

then i decided to run apt update and upgrade, which told me to run --fix-broken install and ta-da, java was installed!

lol.

so much for simplicity.

fast, easy and small. less than 200mb or so. i think. from reading the logs.

cheers!

R
GUEST
R

I had Linux already installed on my Chromebook, so I skipped the first section of the tutorial. When I typed in “sudo apt install jre”, I got this message:
“Reading package lists… Done
Building dependency tree
Reading state information… Done
Package jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘jre’ has no installation candidate”
Do you think you can help with this issue?
Thanks!

olive
GUEST
olive

use the other option

Rory
GUEST
Rory

This was happening to me with all the options

Jukas
GUEST
Jukas

same issue, but then I tried this code and it worked out
sudo apt-get install default-jdk

at least I hope… is there anyway to check ?

cocoherrera
GUEST
cocoherrera

I get stuck here:
bash: startfce4: command not found

Ryan
GUEST
Ryan

do “sudo startxfce4”

Amanda
GUEST
Amanda

I downloaded crouton but now am stuck trying to install java because the command line won’t open…?
Please help!
Thank you!

David Monge
GUEST
David Monge

I see you had the same issue but you have to open crosh by using (ctrl, alt, t). Then type “shell” (without quotations) the continue on.

David Monge
GUEST
David Monge

Oh and I forgot it might take 2 hours (well at least for me) but it works. Love the author, (no ho**).

Kristina
GUEST
Kristina

hey guys i need some help! In the developers page when i type in what you told us to i get the error unknown command: sudo message. what does that mean?

Rpat
GUEST
Rpat

Are you typing in the Chrome OS terminal? Don’t do that. Go into xfce and type it in there

J
GUEST
J

first i figured out i needed to unzip the crouton file, then i figured out i needed to rename it. then because it was my first time using the sudo command i was given a confusing warning message but i figured out i just needed to do it a second time and now when I type the command it gives me no errors but it doesnt install ubuntu.:[