How to install Java on a USB drive

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 answers

  1. Moderator

    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
    1. thank you very much :)

      0
  2. just one last tiny question,

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

    thank you again

    0
    1. Moderator

      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
    2. Ok, thank you very much.

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

      0
    3. Moderator
      @lulu_7921

      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
  3. Okay, thank you very much for your help :)

    0