Static URL for JDK?

I create an NSIS installer to install my application on Windows and check if the user has JDK (> = 1.5) and download and run the installer for him if they do not.

While I saw the URLs for downloading the JRE, I did not see them for the JDK. If I copy and paste the URL, I finally get after you click a few pages to get the 32-bit version of the Windows (without anything else) JDK, the URL changes every time.

My users are not technically savvy and may not be able to download the JDK themselves from the start page , so making them so suboptimal.

Is there a URL that I can use consistently to download the JDK?

+3
source share
3 answers

Google reports 0 results for:

"jdk-6u23-windows-i586.exe" website: sun.com

So, I believe that there is no such web directory on the official site.

Solution 1: you can use this stable link for a specific version of the JDK and update it in future versions of your installer.

Solution 2: you need a JDK, but it is not completely redistributed. If you only need the compiler from the JDK, you can try joining the redistributable JRE with the redistributable javac.exe and associate it with your application (see JRE Version 5.0 README ):

J2SE (TM) Runtime Environment (JRE) .

...

JDK (TM)

JDK, , J2SE. JDK.

...

javac bytecode, :

  bin/ javac.exe [Microsoft Windows]
    lib/tools.jar [ ]

. 3: JRE ( ) - . .

+3

, , - , , . , JDK ( , JDK "", , , .)

0

This is a little off topic, but for a simple Java application deployment, you can check out the java website.

-4
source

Source: https://habr.com/ru/post/1786408/


All Articles