How to Install Java JDK and Set the Environment Variables
Get the Computer Ready for Java Programming
The first thing is to get the software. Go to www.sun.com, and search for Java JDK in the download section. Always try to get the most current version, as of now that is 1.6. This software is free, so download it to your computer. During installation it's fine to go with the custom options, so click next until the installation finishes.
Java should now be installed under c:program filesjava. Go to My Computer and find the folder under program files. Inside the java folder there should be another folder called JDK. Write down the numbers after JDK to get the current version that you have. In my example this is jdk1.6.0_07.
Now it's time to set the environmental variables, and after that you should be ready to go.
Open up My Computer. Right click on the background (not any icons!) in the folder, and choose properties. Find the advanced tab on the top right, and finally the environment variables on the bottom left.
This is where we have to add the references to java, and as you should see there are two places to add it; user and system. User is just for your account on the computer, while system adds it for everyone who uses the machine. It's best to put it under system.
Scroll down on the list until you find the path variable. This is where we will put in the path to java, so don't change anything but hit "end" on your keyboard to go to the far right. Hit the semi colon to separate from the previous path and then write the new path, and put in at the end. Mine would be ;c:program filesjavajdk1.6.0_07in.
Click OK to close it, and than open up command prompt. You should now be ready to issue javac commands to compile your source files. If you get any error message saying that javac is not recognized as an internal or external command, you need to double check your path, and include the CLASSPATH variable.
To get the CLASSPATH you do as you did on the path, but instead of going to "path", you go to "CLASSPATH". If there is no CLASSPATH, you add it under system. The path here is c:program filesjavajdk1.6.0_07lib
ools.jar. (The version number depends on which one you have).
If it still doesn't work for you, read the instructions over and try again. Then your computer is set up for Java programming!
Published by Cloudage
I am a student studying and tutoring in math, chemistry and physics. View profile
- Using Java Access Modifiers in Java ProgrammingJava Access Modifiers (also known as Visibility Modifiers) regulate access to classes, fields and methods in Java. These modifiers determine whether a field or method in a class, can be used or invoked by another meth...
- Your First Java ProgramContains the code, and analysis to create your first Java program.
- Installing Java on DebianThis document describes how to install the Java Runtime Environment (JRE/J2RE) or Java Development Kit (JDK/J2DK) from Sun, IBM or Blackdown on Debian, creating a file.
A Guide to Start Programming in JavaThere are many IDEs (Integrated Development Environment) out there for Java. The one I use is JCreator because it has a very nice interface, uses very little memory and is extre...- Talcott Parsons: Systems Levels, Action Theory and Pattern Variables I have attempted, in this paper, to explain three of Parsons' important contributions to the field of sociology, and more precisely to the theory of functionalism. Parsons had a career that spanned from anthropology t...
- How to Create a RuneScape Private Server - Presented by CaliScape
- Java Lesson 1: Creating and Running Your First Program
- Java Programming Tutorials: The Online Give and Take
- How to Add JARs to Java Project Build Paths
- A Short Introduction to Java Programming Language
- Understanding Java
- How to Declare Integer Variables in Java
- Set the environment paths correctly to avoid headache.
- Java Sun has free software.
- Downloading java jdk is free.

1 Comments
Post a Commentthank you.. nice post