How to install Java on a USB drive

lulu -  
lulu_7921 Posted messages 6 Status Membre -

Hello,

I was wondering if it is possible to install Java and a code viewer on a USB flash drive so that I can program from any computer without having to reinstall it. And to know how to install Java on a USB flash drive if it's possible.

Thank you, have a good day.

4 réponses

KX Posted messages 19031 Status Modérateur 3 020
 

Hello,

For the JDK you can download a zip file from the official site with the "x64 Compressed Archive" option:
https://www.oracle.com/java/technologies/downloads/#jdk20-windows
You can unzip it onto your USB drive and use it as is, there’s really no installation required.

For most IDEs you can do the same:

Be careful, in terms of performance, running a program from a USB drive will certainly be slower.
Also, some settings may be broken if the USB drive letter changes from one computer to another, especially the access to your projects if they are also stored on the USB drive (F:/MyProject becoming G:/MyProject etc.)


1
lulu_7921 Posted messages 6 Status Membre
 

thank you very much :)

0
brucine Posted messages 24411 Registration date   Status Membre Last intervention   4 105
 

Hello,

Java Portable can, as its name indicates, be carried on a non-Windows external hard drive, but on a USB stick?

https://korben.info/lancer-une-application-java-sans-devoir-installer-le-jre.html

0
lulu_7921 Posted messages 6 Status Membre
 

So is it possible to code with a USB key on different computers without having to reinstall Java?

0
lulu_7921 Posted messages 6 Status Membre
 

just one last tiny question,

can I have other files in addition to this one or not?

thank you again

0
KX Posted messages 19031 Status Modérateur 3 020
 

Yes, you can put whatever you want on your USB drive.

Just be careful to leave enough free space on it, because over time the IDE will probably add files to function, which may end up taking more and more space.

It would be the same on a regular disk, but since the space is larger, it would be almost transparent.

0
lulu_7921 Posted messages 6 Status Membre
 

Ok, thank you very much.

My key is 128 Go; that should be enough, right?

0
KX Posted messages 19031 Status Modérateur 3 020 > lulu_7921 Posted messages 6 Status Membre
 

Yes, for the functioning of the JDK and the IDE, it's largely sufficient; it all depends on the other files you will put alongside.

0
lulu_7921 Posted messages 6 Status Membre
 

Okay, thank you very much for your help :)

0