On the command line, type: su -c 'yum install java-1.7.0-openjdk' The java-1.7.0-openjdk package contains just the Java Runtime Environment. Fedora, Oracle Linux, Red Hat Enterprise Linux, etc. If you want to develop Java programs then install the openjdk-7-jdk package. ► Downloading and Installing JDK 1.7.0 on Windowsĭownloading and Installing JDK 1.6. The openjdk-7-jre package contains just the Java Runtime Environment. To execute the program, use the java command:Ĭ:\>"\Program Files\Java\jdk1.7.0_03\bin\java.exe" HelloĬongratulations, you have successfully entered, compiled and executed yourĭownloading and Installing JDK 1.8.0 on Windows Then compile this program in a command window with the javac command:Ĭ:\>"\Program Files\Java\jdk1.7.0_03\bin\javac.exe" Hello.javaģ. Use Notepad to enter the following Java program into a file called Hello.java:Ģ. Once JDK is installed, you can try to use it to compile and execute a simple Java program:ġ. Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing) Java(TM) SE Runtime Environment (build 1.7.0_03-b05) If you are getting the following output, your installation was ok:Ĭ:\>"\Program Files\Java\jdk1.7.0_03\bin\java.exe" -version To test the installation, open a command window to try the java command. The installation wizard will guide you to finish the installation.Double-click on jdk-7u3-windows-i586-p.exe to start the installation wizard.Save jdk-7u3-windows-i586-p.exe to a temporary directory.Click the download icon in " Windows x86 (32-bit) - jdk-7u3-windows-i586.exe" line. You will see the "Java SE Development Kit 7 Downloads" page.
0 Comments
Leave a Reply. |