A portable application can be run from a removable drive (USB flash drive, iPod, portable hard drive, etc) on any Windows computer without installation.
You will carry the program with settings on removable drive and don't modify settings on host computer.
Tested on Windows XP Pro SP3 and Windows 7 Integrale SP1.
On Vista and 7 turn off User Account Control (UAC) or run launcher as admin.

If you found dead links, search on Jooseng's Mirrors.

04 August 2014


Java Runtime Environment & Plug-in for Portable Apps.
Download Portable Java 7 Update 67 32-64 bit Online (0.5 MB)

Extract in your PortableApps folder (CommonFiles and *Portable folders at the same level).

46 commentaires:

Unknown said...

Can't get this to work for me with Chrome... created:
c:\CommonFiles
c:\PortableApps\P-Chrome
c:\PortableApps\CommonFiles
c:\PortableApps\P-Chrome\CommonFiles

All together and still doesn't work

Bernat said...

If you let the installers of Chrome and Java use the default path you should have:
X:\PortableApps\CommonFiles\Java\bin\plugin2\npjp2.dll
for Java plugin dll and
X:\PortableApps\ChromePortable\ChromePortable.exe
for ChromePortable launcher.
(ChromePortable and CommonFiles must be in the same parent folder).

But there is a problem if you test: Chrome says plugin is obsolete and you have to choose run anyway.

Unknown said...

1) I used the switch --allow-outdated-plugins and it ran without the prompt

2)Is it not possible to rename the folders or MUST we keep the folder names exactly the way the installer creates them?

Bernat said...

1) Thanks for switch: I will add in launcher.

2) Folder name MUST have the same number of characters (14) than ChromePortable.
Read lines 66-68 in ChromePortable\Other\Source\_ChromePortable.nsi

mor lev said...

Hello!
Thank you very much for all your efforts and all your work on the portable appz project.
this is a long time that i was looking to find a way to send you some feedbacks.
i would like to ask or suggest if it is possible to make the on-line portable launcher to find or load the requested file from the local storage in a case that i already have it instead of redownloading the file. also is it possible to tell to the launcher to repack the portable installer after the download and extraction is complete or located, so we will get a full off-line installer.

Bernat said...

- use downloaded setup: sometimes done(LibreOffice, Total Commander)

- repack: simply use 7-Zip

Unknown said...

Hi, I have firefox portable installed in:

C:\PortableApps\FirefoxPortable

and Java in:

C:\PortableApps\CommonFiles

but for some reason it's not working, firefox just do not see java...

Do you have any suggestion to fix this problem?

Thanks

Bernat said...

For me the test:
http://www.java.com/en/download/help/testvm.xml
run with Firefox 15.0 Aurora 17.0a2 but not Nightly 18.0a1 x64
Check if you have
C:\PortableApps\CommonFiles\Java\bin\plugin2\npjp2.dll

The_Steph said...

Bernat,

Do you plan to release 64bits version of portable java too?

Thanks for you amazing work.

Bernat said...

Added 64 bit (32 bit compatible).

LUXY said...

Hi
I use windows8 and IE10
and link to http://www.java.com/en/download/help/testvm.xml
but it don't work

Bernat said...

Of course if you use a not portable browser such as IE.
Works only with portable browsers of this blog.

LUXY said...

thank you
If I use Chrome portable 23.0.1271.64
and installed in :
E:\PortableApps\ChromePortable
JAVA in:
E:\PortableApps\CommonFiles
It still don't work

Bernat said...

Working for me:
http://img839.imageshack.us/img839/7338/javachrome.png

I had to allow execution:
http://img40.imageshack.us/img40/1326/chromejava.png

francis said...

Hi Bernat, thanks for great work in the blog. I have a question: How I can do portable java? I downloaded the latest version 7 update 10, I extracted it, and I copied all files in the path where your launcher made the program portable, but It doesn't run. And there are a posibility that you create a launcher of java 6 update 38, because JDownloader 0.9.581 (portable) only works fine with java 6, not with java 7 (source: Jdownloader forum).

Bernat said...

I can't compile online installer for 7 update 10 because it can use only direct download links.

I will try to build setup extractor for other versions.

For your problem did you update
CommonFiles\Java\JavaPortable.ini
with
[JavaPortable]
Version=1.7.0_10

francis said...

Now I understand, why you don't post a launcher for java 7 update 10

Yes, you are right, I updated the name of file .ini, I observed when I run JDownloader (0.9.581 and 2 beta), the process of java never starts. (Tested with java 6 update 38 and 7 update 10, by copying all files into the path of the previous portable versions).

Thanks for your time, and thanks in advance.

Bernat said...

Perhaps did you just extract core.zip without unpacking lib\*pack to .jar

francis said...

Ops... I didn't unpack the files with extension pack, there were my problem, now I know for the next time. And thanks for the update, I tested the differents versions of java and are working fine. Thanks a lot for your time and for your great effort to keep it up.

JustMe said...

Could you please update the JRE6 extractor, or possibly make it universal (by entering a version number or filename, etc)?

Bernat said...

JRE6 updated to 39.

François_ said...

Comme certains, bien qu'ayant installé correctement, et à la bonne place JavaPortable, Java ne fonctionnait pas.
Et, selon http://www.java.com/en/download/help/testvm.xml, je ne disposais pas de Java.

Je me suis souvenu que précédemment, lorsque j'avais Java d'installé sur mon pc, j'avais décoché l'option : "Activer le contenu Java dans le navigateur", dans la rubrique "sécurité" de Java du "panneau de configuration".

J'ai réinstallé Java afin de le retrouver dans le "panneau de configuration" , et l'option : "Activer le contenu Java dans le navigateur" était toujours décochée.
Preuve que Java garde toujours des traces de configuration dans le registre.

Cependant, après avoir coché l'option d'activation dans le navigateur, et après avoir lancé FirefoxPortable (les deux plugins Java bien présents, Java effectivement détecté et fonctionnel), je n'y ai plus retrouvé de trace ni dans le "panneau de configuration" ni dans C:\Program Files\Common Files !!!!! Et je n'ai rien désinstaller (volontairement)!!!!!!!

En explorant le registre avec JV16, je retrouve 126 clés concernant Java.
Après réinstallation, jv16 me trouve 2175 clés.
Preuve qu'en installant JavaPortable dans un dossier apps, Java se désinstalle de lui-même sur le pc, et ça passe inaperçu!!!!!!!!

Après recherche dans mon registre, il me semble que la clé autorisant ou non d'"Activer le contenu Java dans le navigateur" serait celle-ci :

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_03\MSI

Bernat said...

Je n'ai aucune clé de Java dans mon registre et pourtant il fonctionne dans mon FirefoxPortable.

J'ai dû cependant accepter un avertissement de sécurité pour réussir le test.

Le lanceur utilise la variable d'environnement MOZ_PLUGIN_PATH pour indiquer à Firefox où se trouvent les plugins (voir source).

François Jérome said...

"Le lanceur utilise la variable d'environnement MOZ_PLUGIN_PATH pour indiquer à Firefox où se trouvent les plugins (voir source)."
C'est donc ça : le "lanceur" détecte une version déjà installé et la désinstalle.

les entrées du registre : HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_03\MSI
et : HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins devraient alors être examinées avant l'extraction de Java dans le dossier apps portable?? (pour le cas de firefox)

Cette entrée doit aussi avoir son importance dans la configuration de Java : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\SO\JAVAPER


Quoiqu'il en soit, s'il y a problème concernant JavaPortable, une solution est d'installer directement Java sur le pc et de cocher l'option "Activer le contenu Java dans le navigateur"...

François_ said...

J'ai supprimé les clés :
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_03\MSI
et :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\SO\JAVAPER
, Java désinstallé avec auparavant l'option "Activer le contenu Java dans le navigateur" décochée rien n'y a fait!
une piste ici :
http://assiste.com.free.fr/p/abc/c/anti_java.html

Bernat said...

"le "lanceur" détecte une version déjà installé et la désinstalle"
Pas du tout : voir source ligne 60

shamu726 said...

java 6 Update 43 available.

Bernat said...

Updated but not tested.

jooseng said...

There is a typo error in the 1st screen of the installer of ver 8:

Enter build "date"

Bernat said...

Fixed b to d. Thanks.

Dũng Nguyễn said...

Can you share the source code?
I want create Java Development Kit portable.
Or can you create this portable?

Thanks you!

Bernat said...

JavaPortableSources

Alessandro Tristan said...

Dear Bernat,

Thank you for works.

I wonder, if I use Firefox (32 bit) and Waterfox (64 bit), how to make Waterfox recognized the 64 bit Java portable in \CommonFiles\Java64\... folder?

Regards,
~Al

Bernat said...

Waterfox launcher check if found
CommonFiles\Java_64\bin\plugin2\npjp2.dll
and set MOZ_PLUGIN_PATH Environment Variable to the path.

The test show only Java version but not architecture.

Alessandro Tristan said...

I change the folder path to
> CommonFiles\Java_64\bin\plugin2\npjp2.dll
Yes, now it detects Java plugin.

Add "MOZ_PLUGIN_PATH=C:\Portable Apps\CommonFiles\Java_64\bin\plugin2"
to the:
> WaterfoxPortable.ini

When I test it, Waterfox just crash out after I click the red verify java button.

Anything I did wrong?

Thanks for the last response, it was fast :)

Bernat said...

You have nothing to add to WaterfoxPortable.ini.
All is done by launcher WaterfoxPortable.exe.

The line you added is useless but this entry is not used by launcher and can't make crash.

Delete WaterfoxPortable.ini and retry.

My test.

Alessandro Tristan said...

Thanks. It works now.

I was using PortableApps.com portable JRE, I thought it's just the same.

Merci bien!

happysurf said...

I have Firefox final, Aurora and Nigtly portable at same level to Java (Common Files Folder) but only the final/beta launcher recognize Java portable.
Any idea?
Thanks.

Bernat said...

Same line of script in all launchers (using MOZ_PLUGIN_PATH Environment Variable).
Should be a bug of alpha versions.

Compstuff said...

Can't seem to get to the download for the 8u5 always getting the following:

Oops! Google Chrome could not connect to rghost.net

Access a cached copy of rghost.­net/­54201147

Bernat said...

Tested working with Chrome and Opera.

Compstuff said...

Hmmm maybe my damn provider is blocking... I will try a different location... thanks

Bernat said...

Java_Portable_8.0.5.13_32-64_bit_Online.exe

Compstuff said...

Thanks VERY much Bernat... sure enough my cable company is blocking that host... your link worked perfectly

Anna Skomra said...

the aceptation is on http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u55-oth-JPR

Bernat said...

Thanks, this is now http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html#jre-6u45-oth-JPR
Updated.

Post a Comment