Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My question may seem odd but this is indeed what I need to do. For the first in the last (maybe) 10 years I have to run a JAR file in my computer. But I don't want to install 'the Java' (and all those things it adds into your system). How can I run that JAR file?

share|improve this question
1. Too broad. Differs for each application. 2. That's asking for a recommendation, which is off-topic. – gparyani Apr 23 '14 at 15:07
You can manually uncheck the box every time you install or update. Alternatively, you can disable it using the registry. – gparyani Apr 23 '14 at 15:10
This depends on each individual application. – gparyani Apr 23 '14 at 15:11
We don't solve questions by putting "solved" in the title. You should wait for @nixda to post his answer. – slhck Apr 23 '14 at 16:08
Even if your question was actually an XY problem: the above is not a duplicate of the one you voted for. What are you trying to achieve with your edits of the title and that close vote? Given your reputation on SO I guess you know, but please remember that all Stack Exchange sites try to be a useful resource for future visitors. – Arjan Apr 23 '14 at 21:20
up vote 11 down vote accepted

You have two options

  1. Use jPortable together with jPortable Launcher

    jPortable Launcher allows you to easily run Java JARs from your device with the jPortable portable Java Runtime Environment installed.


  2. Copy the whole Java folder from another PC where Java is installed over to your PC

    Download and extract the Windows x86 tar.gz version and start your .JAR file from commmand line:

    start C:\Java\bin\javaw.exe -jar C:\myfolder\myprogram.jar

share|improve this answer
2 is not ok because it implies to install (now or in the past) Java on the 'another PC'. But 1 works. – SolarWind Apr 24 '14 at 9:22
If you are concerned or have no access to a second machine, you could always install Java in a VM, backup the Java folder and uninstall Java again. I'm using the secondf approach for almost every Java program I'd like to run – nixda Apr 24 '14 at 10:00

I remember that severel years ago you could download Java, unzip it, put it somewhere in a folder, and by pointing to the java executable in that folder you could run java. I don't know how it works today with the current versions, but I wouldn't be surprised if it still could work like that. Don't have Windows here, so can't test it, but you can download a zip (or tar.gz) file, unzip that and than work from there. If you can't unzip gz files, download and install 7-zip.

This won't install it like you normally do, so no update alerts etc, no browser integration, no system variables, but you need something to run that code, and this is the least I think.

Download one of the tar.gz versions.

share|improve this answer
+1 Didn't know they offer a tar.gz packet – nixda Feb 2 '15 at 18:42

The best way is that convert your .jar file into .exe . follow this : JAR2EXE

share|improve this answer
This looks like it requires Java. – slhck Apr 23 '14 at 16:09
Indeed this needs Java installed. See the system requirements at the right side – nixda Apr 23 '14 at 21:44

This just worked for me:

  1. download the Java installer for whatever version you want;
  2. open it with 7-zip;
  3. locate and extract the file (it can be in different directories, depending on Java version, build, or if it is a JDK or JRE);
  4. expand in some ;
  5. go into and run for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar;
  6. try running bin/java -version.

If it works, thats it, you have got yourself a portable JAVA_HOME.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.