-3

I would like to run a portable jar-file created with OpenJDK 20 (i.e. without installation).

So far I have managed this with the OpenJDKJRE package for Java 14 from portableapps.com. But for the OpenJDK 20 I don't know where to get the JRE. Does anyone have an idea where to get it?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
ralle
  • 15
  • 5
  • 1
    Doesn't the JDK include a JRE? – Sören Jul 17 '23 at 09:26
  • 4
    The proper method would be to use jlink or jpackage to create a suitable custom JRE specifically for your application. – Mark Rotteveel Jul 17 '23 at 09:31
  • ah ok thanks for the tip, i'll take a closer look. – ralle Jul 17 '23 at 09:32
  • 3
    There is no need to get a JDK or JRE from portableapps.com. Their definition of “portable”, i.e. “can be used from an arbitrary filesystem location”, applies to the JDK/JRE by default. Just download a JDK or JRE as zip folder and extract it to wherever you like. – Holger Jul 17 '23 at 15:30

1 Answers1

0

Normaly the JDK already includes the JRE, so you should be fine if you install the latest JDK 20.

nikho2000
  • 1
  • 3