0% found this document useful (0 votes)
2 views

1. Get Ready to Start JAVA

The document outlines the steps to start a new project in Java, including installing the JDK, defining the PATH for javac, setting the CLASSPATH variable, and installing Eclipse. It provides detailed instructions for each step, ensuring that users can verify their installations and configurations. The final note encourages users to enjoy their Java programming experience.

Uploaded by

lengk4039
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

1. Get Ready to Start JAVA

The document outlines the steps to start a new project in Java, including installing the JDK, defining the PATH for javac, setting the CLASSPATH variable, and installing Eclipse. It provides detailed instructions for each step, ensuring that users can verify their installations and configurations. The final note encourages users to enjoy their Java programming experience.

Uploaded by

lengk4039
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

1.

How to start the new project in Java

• You have all 4 steps (see figure below)

• IN step 2 : After Install JDK, make sure it work


by use this command:
Java -version

By: Pen Socheat, Master IT Read less-Learn more


2. After install JDK, Then test it

Version JDK you use, Mean it work

By: Pen Socheat, Master IT Read less-Learn more


3. Define Path in JDK to use Javac

• Before define path for JDK, please test javac


(Java Compiler) by use command “javac”

By: Pen Socheat, Master IT Read less-Learn more


3. Define Path in JDK to use Javac (Cont.)

• Step to define PATH for javac


1. Open Windows Explorer
2. Right Click \ Properties

By: Pen Socheat, Master IT Read less-Learn more


3. Define Path in JDK to use Javac (Cont.)

3. Click Change settings

By: Pen Socheat, Master IT Read less-Learn more


3. Define Path in JDK to use Javac (Cont.)

4. Click Advanced tab

By: Pen Socheat, Master IT Read less-Learn more


3. Define Path in JDK to use Javac (Cont.)

5. Click Environment Variables . .

By: Pen Socheat, Master IT Read less-Learn more


3. Define Path in JDK to use Javac (Cont.)

6. In Environment Variables . . , Please Click Path

By: Pen Socheat, Master IT Read less-Learn more


3. Define Path in JDK to use Javac (Cont.)

7. Click Edit

By: Pen Socheat, Master IT Read less-Learn more


3. Define Path in JDK to use Javac (Cont.)

• Please place Cursor at the end of text

By: Pen Socheat, Master IT Read less-Learn more


3. Define Path in JDK to use Javac (Cont.)

8. Please put this text

;C:\Program Files (x86)\Java\jdk1.6.0_26\bin

• This text is the JDK Path has been install into


your system.
• If your JDK is not in the like this “Please
change it”

By: Pen Socheat, Master IT Read less-Learn more


3. Define Path in JDK to use Javac (Cont.)

• After you have finish to define PATH, Then you


can test it by use PATH command

If you see like this,


mean that it’s work
now.

By: Pen Socheat, Master IT Read less-Learn more


4. Define Variable CLASSPATH

• CLASSPATH will be use class and library in Java.


1. Click New

By: Pen Socheat, Master IT Read less-Learn more


4. Define Variable CLASSPATH (Cont.)

2. Enter:
• Variable name: CLASSPATH
• Variable value: .

3. Click OK
By: Pen Socheat, Master IT Read less-Learn more
4. Define Variable CLASSPATH (Cont.)

• You will see

4. Click OK (All Done)


By: Pen Socheat, Master IT Read less-Learn more
5. Install Eclipse

• Lecturer will send you this package “Eclipse” or


students can be download from the link below:
www.eclipse.org/downloads

Lates version will be use, but lecturer will provide


the version that he used

By: Pen Socheat, Master IT Read less-Learn more


5. Install Eclipse (Cont.)

• Please follow this step to install Eclipse


1. Download “Eclipse” from the Telegram group
2. Extract file, then Copy and store it in drive C:\

By: Pen Socheat, Master IT Read less-Learn more


5. Install Eclips (Cont.)

3. Open Folder “Eclipse”

By: Pen Socheat, Master IT Read less-Learn more


5. Install Eclips (Cont.)

4. Double Click on eclipse application file to start


the program

By: Pen Socheat, Master IT Read less-Learn more


5. Install Eclips (Cont.)

5. You can define Workspace, Otherwise just


Click Launch

By: Pen Socheat, Master IT Read less-Learn more


5. Install Eclipse (Cont.)

6. You will Eclipse environment like this, Click


Workbench

By: Pen Socheat, Master IT Read less-Learn more


5. Install Eclipse (Cont.)

That’s all:
Please enjoy your JAVA
Programming now.
Congratulation !!!

By: Pen Socheat, Master IT Read less-Learn more

You might also like