How to Install Portable Java Runtime Environment on USB

Most computer users have heard of the Java programming language because it will be installed on a lot of machines and required on some websites. One good thing about Java is it’s cross platform and runs in it’s own self contained virtual machine, meaning the same applets and programs can be run on different operating systems such as Windows, Linux and Mac OS without using different code.

Some users claim it slows their computer down because of the extra processes loading with Windows such as the Quick Starter process jqs.exe. One thing a Java install does do which annoys a lot of people is leave the previous versions in place to supposedly help with compatibility. The small utility JavaRa was designed to help clean out any old installation files. Exploits do appear from time to time which can potentially allow malware to be installed onto a computer if the user clicks the Yes button when visiting a website created by a hacker, but these exploits are rare and fixed pretty quickly.

Although the Java Runtime Environment (JRE) package requires installation and there is no official portable version, it is still possible to run applets and applications without installing Java into Windows. An unofficial portable version from PortableApps.com allows you to copy Java to your USB flash drive or hard drive folder and run it from there. Here’s a guide on how to do that.

1. First insert a USB flash drive into your computer. For this example the letter of our USB flash drive is the F: drive. Obviously substitute F: for your own drive letter.

2. Download Java Portable from PortableApps.com. Once finished downloading, run the downloaded executable file and click OK -> Next -> I Agree and then you’re asked to choose an install location. By default the destination folder will show {path}\CommonFiles\Java, add F: at the front so that it becomes F:\CommonFiles\Java and click the Install button. The latest Java installer will download which is currently around 30MB.

Install Java Portable

3. When the Portable setup has finished, download and run the PortableApps.com jPortable Launcher tool which is a small program that can execute Java .JAR files. During the install take note of the destination folder again. Add F: in front so that the destination folder becomes F:\JavaPortableLauncher and click the Install button.

4. To run a Java applet or application, open the F: drive and execute the F:\JavaPortableLauncher\JavaPortableLauncher.exe file which will open a file dialog asking you to select the .JAR file of the applet or program you want to run. If you are getting a “jPortable Launcher cannot be started…” error, it means that you installed Java Portable at the wrong location in step 2. Make sure that it is installed in {drive:}\CommonFiles\Java.

jportable launcher cannot be started

You cannot use this method with currently installed software that requires Java to function like LibreOffice or jDownloader or Java applets in web browsers. If you try to open a webpage in an installed browser which requires Java then you’ll just be told it needs to be installed. The torrent client Vuze/Azureus did at least ask for the location of the Java files on install and worked using the portable Java.

The good thing is PortableApps.com have made this version of Java compatible with their portable applications that require or use Java such as LibreOffice or Firefox. Just make sure to have CommonFiles in the same folder as the portable application folder, e.g; F:\folder1\CommonFiles\Java and F:\folder1\FirefoxPortable.


The hugely popular download manager jDownloader is programmed in Java and will obviously need a Java runtime installation to work. Although not officially available at PortableApps.com, it can easily be used in a portable way with the above method. Simply download the MultiOS zip file from “Other” on the jDownloader download page and extract it to your USB flash drive or hard drive folder. Now simply launch JavaPortableLauncher and locate the jDownloader.jar file.

jdownloader running with no java installed

To launch jDownloader directly from a shortcut so you don’t need to open the JAR file manually every time requires a few extra steps, you need to:

1. Copy the contents of the JavaPortableLauncher folder to the jDownloader folder.

2. Create a shortcut of JavaPortableLauncher.exe, right click on the shortcut -> Properties, then append “jDownloader.jar” in the Target box. Create the shortcut AFTER copying the jDownloader folder to its final location or the paths in the shortcut will be incorrect.

The CommonFiles folder HAS to be one folder level up from where you have placed the JavaPortableLauncher.exe. For example, if you have:

“D:\Portable Tools\jDownloader\jDownloader\JavaPortableLauncher.exe”

The CommonFiles folder will be:

“D:\Portable Tools\jDownloader\CommonFiles”

Using this method you can have a portable jDownloader folder with Java included which can be placed in any hard drive folder or external USB drive. Obviously you can do this with many other Java based applications not just jDownloader.

8 Comments - Write a Comment

  1. Micke 5 years ago
  2. an9n 7 years ago
  3. Karol 8 years ago
    • maritza 7 years ago
  4. Jason 10 years ago
  5. Kevin 14 years ago
  6. Sean Mize 14 years ago
  7. Ishaan Rodrigues 14 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: Your comment is subject to approval. Read our Terms of Use. If you are seeking additional information on this article, please contact us directly.