All Versions
Fedora 3.8.0 (Current Release)
Fedora 3.7.x
Fedora 3.6.x
Fedora 3.5.x
More..
Old Release
This documentation covers an old version of Fedora. Looking for another version? See all documentation.
This information is only relevant if you are installing the Fedora Repository on a Windows server.
After you have installed the Java Development Kit in Windows, you must set the JAVA_HOME variable to the installation directory.
Please check that you have a JDK or SDK --- Java JRE is not enough
A common problem is that people have only installed the Java Runtime Environment (JRE). You need either a Java Development Kit (JDK) or J2SE Software Development Kit (SDK). To confirm that you have the right version, you can check the Java installation path. Unless you changed the path during installation, Java will be installed to a subdirectory under C:\Program Files\Java
, for example C:\Program Files\Java\jdk1.5.0_17
Open C:\Program Files\Java
and confirm the installation path is for a JDK or SDK. JRE installations are not suitable, and have an installation directory beginning with jre
. The numbers after the jre
are not relevant. Example JREs are:
jre1.5.0_16
jre6
SDK and JDK installations are suitable. Their installation directory begins with jdk
or j2sdk
, the numbers at the end are not relevant. Example JDK and SDKs are:
jdk1.5.0_17
jdk1.6.0_07
If you cannot see an installed JDK or SDK, install the JDK now (see Installing Java). It is perfectly fine to leave your currently installed JRE in place. Windows will generally use its registry to support Java functions. You can install an additional JDK within C:\Program Files\Java
or in a separate directory for use with the Fedora Repository. We will set the JAVA_HOME
environment variable to provide compatibility.
If you already know the installation path for the Java or Software Development Kit, go to Step 2 below. Otherwise, find the installation path by following these instructions: Once you have identified the JDK installation path: This diagram shows setting the
Step 1. Locate the JDK Installation Directory
C:\Program Files\Java
. Using File Explorer, open the directory C:\Program Files\Java
.jdk1.5.0_17
. If you have just installed the Java Development Kit, it will be installed to the newest directory, which you can find by sorting by date. For example, it may be installed in C:\Program Files\Java\jdk1.5.0_17
. This is the installation path.Step 2. Set the JAVA_HOME Variable
JAVA_HOME
.JAVA_HOME
variable to an installation path of C:/Java/jdk1.5.0_12
:
If you came here from Installing Standalone, go back and begin Step 3.