Open the Java Preferences utility which can be found by going to /Applications/Utilities/ or doing a search for Java Preferences. Once you have updated, follow the instructions below for making Java 6 the default installation. If you are running an old version of Java, you should use the Software Update tool to get the latest version.
#How to install java on mac os 10.5 mac os
Updates to Java are included in Mac OS X's Software Updates. Open a new terminal window and repeat the "Checking to see if Java is installed" section to make sure everything works. Now you should be able to compile programs with just 'javac' and run programs with 'java' without having to be in the java bin directory. Keep clicking OK until the System Properties window closes.Ĭlose all open programs (you might have to restart) for these changes to take effect. Variable name: CLASSPATH Variable value: Add. If the CLASSPATH variable already exists, click Edit. In the System Variables section, look for the variable CLASSPATH. ) to the end (Make sure the path starts and ends with a. Variable name: Path Variable value: Add YOUR_JAVA_BIN_PATH (should be C:\Program Files\Java\jdk1.6.0_17\bin. If the Path variable already exists, click Edit. In the User variables for section at the top, look for the variable Path (not PATH). Go to the Advanced tab in XP (or click Advanced system settings in Vista) and click the Environment Variables button. Right-Click the Computer icon from the Start Menu or the Desktop and select Properties. Keep clicking Next until the installation is complete. Locate where you downloaded the installation file on your computer and double-click it to start installing. Click on the file under "Java SE Development Kit". Then click "Continue".Ī download page will pop-up. On the download page under the "Platform" pull-down menu select "Windows" if you have a 32-bit OS or "Windows 圆4" if you have a 64-bit OS. In the Java Platform, Standard Edition box, click on the Download JDK button.Ĭlick the "Download" button under "Download Java SE Develepment Kit".
#How to install java on mac os 10.5 install
If you see numbers other than 1.6, or get an error message, follow the steps below to install Java on your computer. If you do, then you're all set for class. (It doesn't really matter what's after the “_”, as long as the first part says 1.6.0). Then, type "javac -version" and press enter.įor each of these you should see some text, and then the numbers "1.6.0_#". Open a terminal window (or a command prompt window if you are using Windows-NOT Cygwin)