How to install Java on a USB drive
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
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:
- IntelliJ Community Edition: Download > .zip
https://www.jetbrains.com/idea/download/#section=windows - Eclipse IDE for Java Developers
https://www.eclipse.org/downloads/packages/
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.)
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
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.
thank you very much :)