FAQ:How to Install Sun Java JDK or JRE on rPath Linux
From rPath Wiki
| FAQ | ||
| Question: How do I install Sun's Java JDK or JRE on rPath Linux? | ||
Answer: Use the instructions on this page to install Sun's Java Runtime Environment (JRE) or
Java Development Kit (JDK) on rPath Linux.
JRE
To install the JRE, issue the following command as root:
#> conary update sun-jre
For including the JRE in an appliance, also see FAQ:How to Include Sun JRE in an Appliance.
JDK
Because GCC includes Java-related support, the potential exists for conflicts between the GCC and JDK documentation. To minimize the chance for conflicts, make sure your system has the latest version of GCC installed:
#> conary update gcc
Next, issue the following command to determine whether you have GCC's Java-specific packages (called gcc-java) installed:
#> conary query gcc-java
No conflict exists between the GCC and Java documentation provided the command returns the message:
gcc-java was not found
Then, install the JDK by issuing the following command as root:
#> conary update sun-jdk --resolve
However, if your system has gcc-java installed, a conflict exists between the gcc-java:doc and the sun-jdk:doc components, and must be resolved in one of two ways:
- By removing the gcc-java:doc component and then installing sun-jdk:
#> conary erase gcc-java:doc
#> conary update sun-jdk --resolve
- By installing sun-jdk, but excluding the sun-jdk:doc component:
#> conary update sun-jdk --resolve --exclude-troves sun-jdk:doc
