Skip to content

Commit

Permalink
Merge pull request #3 from ncbaratta/setup2
Browse files Browse the repository at this point in the history
initial modules
  • Loading branch information
ncbaratta authored May 24, 2019
2 parents 61e1b55 + 76aea01 commit c8835bb
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 13 deletions.
16 changes: 14 additions & 2 deletions assemblies/assembly-getting-started.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
[id="getting_started_with_openjdk_for_windows"]
= Getting Started with {comp}

[id='getting-started-{context}']
= Getting started
{prod} (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition (Java SE).

{comp} provides a distribution of {prod} that follows the {rhel} distribution of {prod} as closely as possible on the {msw} platform.
Windows builds use {rhel} RPM sources and apply all of the relevant RPM patches.

{comp} includes {prod}, fonts, timezone data, and CA certificates from {rhel}.

include::../modules/ref_installation_options.adoc[leveloffset=+1]

include::../modules/proc_installing_openjdk_zip.adoc[leveloffset=+1]

include::../modules/proc_installing_openjdk_msi.adoc[leveloffset=+1]
11 changes: 0 additions & 11 deletions modules/proc_installing_openjdk-on-windows.adoc

This file was deleted.

34 changes: 34 additions & 0 deletions modules/proc_installing_openjdk_msi.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[id="installing_openjdk_msi_installer"]
= Installing {prod} with the MSI Installer

The {comp} MSI-based installer includes the following features:

**jdk**::
Java Development Kit (JDK) files.
**jdk-registry-standard**::
Registry keys:
+
----
HKLM\Software\JavaSoft\JDK\<version>, entries:
JavaHome: <INSTALLDIR>
RuntimeLib: <INSTALLDIR>\bin\server\jvm.dll
HKLM\Software\JavaSoft\JDK, entries:
CurrentVersion: <version>
----
**jdk_env_path**::
Appends `<INSTALLDIR>\bin` to the system `%PATH%` environment variable.
**jdk_env_java_home**::
Sets `<INSTALLDIR>` to the system `%JAVA_HOME%` environment variable.
**jdk_env_vendor_java_home**::
Sets `<INSTALLDIR>` to the system `%REDHAT_JAVA_HOME%` environment variable.
**jdk_registry_jar**::
Association for JAR files. Launch JAR files with the OpenJDK context menu.
**jmc**::
JDK Mission Control files, installed into `<INSTALLDIR>\missioncontrol`.
**jmc_env**::
Appends `<INSTALLDIR>\missioncontrol` to the system `%PATH%` environment variable.

.Procedure
. link:{openjdk-download-url}[Download the MSI-based installer] of {comp} for your architecture.
. Run the installer and follow the on-screen instructions to install {comp} and the desired extra components.
27 changes: 27 additions & 0 deletions modules/proc_installing_openjdk_zip.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[id="installing_openjdk_zip_bundle"]
= Installing {prod} with the ZIP Bundle

{comp} can be manually installed using the ZIP bundle.

.Procedure
. link:{openjdk-download-url}[Download the ZIP bundle] of {comp}.
. Extract the contents of the ZIP bundle to a directory of your choice.
+
[NOTE]
====
Extracting the contents of the ZIP bundle to a directory path that *does not* contain spaces is recommended.
====
. Add the `bin` directory contained in your {comp} installation path to the `%PATH%` environment variable:
+
----
C:\> setx /m PATH "%PATH%;C:\Progra~1\RedHat\java-11-openjdk-11.0.1.13-1\bin"
----
+
If the path contains spaces, use the shortened path name.

. Restart Command Prompt to reload the environment variables.

The `%JAVA_HOME%` environment variable must also be set to use some developer tools.
Set the `%JAVA_HOME%` environment variable as follows:

include::modules/proc_add-java-home-env-variable.adoc[]
9 changes: 9 additions & 0 deletions modules/ref_installation_options.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[id="openjdk_for_windows_installation_options"]
= {comp} Installation Options

{comp} can be installed manually using a ZIP bundle or through a graphical user interface using an MSI-based installer.

Depending on your circumstance, use one of the following installation methods:

* <<installing_openjdk_zip_bundle>>
* <<installing_openjdk_msi_installer>>

0 comments on commit c8835bb

Please sign in to comment.