Java Formatting

Plzsend me The Font Styles and Coding in java? Thanksjavascript:emotic

Page 1 of 1

2 Replies - 688 Views - Last Post: 28 October 2009 - 06:22 PM Rate Topic: -----

#1 rizwan_tahir  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 27-October 09

Java Formatting

Posted 27 October 2009 - 10:50 PM

View PostElcric, on 13 Sep, 2009 - 10:16 AM, said:

BEGINNER JAVA JDK ECLIPSE FOR WINDOWS TUTORIAL


YOU WILL LEARN HOW TO:

1. DOWNLOAD JAVA JDK

2. INSTALL JAVA JDK

3. DOWNLOAD ECLIPSE

4. INSTALL ECLIPSE

5. START WRITING JAVA PROGRAMS

• I. INTRODUCTION

Hello; nice to meet you! Welcome to the “BEGINNER JAVA JDK ECLIPSE TUTORIAL.”

• II. DOWNLOADING JAVA JDK

Start your browser then go to the following website:

http://java.sun.com/

At the top of the webpage select Downloads and then select JAVA Standard Edition (SE) link.

Look for the Java Development Kit (JDK). The JDK lets you write and compile JAVA programs.

Download the Java JDK, I recommend accepting all the defaults, and you will have the Java compiler downloaded.

• III. INSTALLING JAVA JDK

Perform the following steps:

1. From your Start menu click on My Computer.

2. From My Computer click on C:\ your main hard drive.

3. From C:\ click on Program Files.

4. From Program Files open the Java folder.

5. From the Java folder open the folder with the name that includes jdk.

6. From the jdk folder open the bin folder.

7. From the bin folder right click on appletviewer.

8. From the appletviewer click on properties.

9. From properties copy the location path.

10. Return to your Start menu and click on My Computer.

11. From My Computer right click on properties.

12. From properties click Advanced System Settings.

13. From Advanced System Settings click Environment Variables.

14. From Environment Variables go to the top section named New User Variables and for Variable name: type path

15. From Environment Variables underneath Variable name: for Variable value: past the location path you copied in step 9.

16. From Environment Variables click OK and keep clicking OK on each window until you exit out and return to your desk top.

To test to see if everything works properly, from your desk top, click Start then click Run, type cmd, press Enter, and from the command line type javac then press Enter.

If everything works you will be in the java compiler and ready to code your first java program using Note Pad or a similar text editor.

I do not recommend using a Note Pad type text editor.

I recommend Eclipse.

• IV. DOWNLOADING ECLIPSE

Start your browser then go to the following website:

http://eclipse.org/

From the Eclipse website click on downloads.

Download the Eclipse that fits your needs, I downloaded Eclipse Classic.

I recommend accepting all the defaults and you will have the Java Eclipse IDE downloaded.

• V. INSTALLING ECLIPSE

The Eclipse download will be a zip file.

Use WinZip or a similar package to unzip and extract the download.

I recommend accepting all the extraction defaults.

1. From your Start menu click on My Computer.

2. From My Computer click on C:\ your main hard drive.

3. From C:\ click on Program Files.

4. From Program Files open the Eclipse folder.

5. Right click on the purple round Eclipse circle icon, the one with the three white horizontal lines and select Create Shortcut.

6. Click and drag the shortcut to your desktop.

• VI. WRITING YOUR FIRST JAVA PROGRAM

Click the Eclipse shortcut on your desktop. When Eclipse opens follow these steps:

1. Click File, then click New, then click Java Project.

2. From the Project Name window, type is whatever name you prefer, and then press Finish.

3. You will be returned to the first Eclipse window.

4. On the left side of the window you will see the Project Name you entered. Click the icon to the left to the Project Name and the project will be expanded.

5. Click source the top option src, then click New, then click Class.

6. A new window will open requesting a class name. Type in whatever name you prefer then press Finish.

7. The next window will show the start of the class code. Eclipse will start the code for you. It will say public class {…}.

8. Copy and then paste the following code between the two {…}.

public static void main(String args[]){
	System.out.println("Hello World!");
}



Look at the toolbar at the top of the window. Under Refactor you will see an arrow icon pointing to the right. When you move your cursor over the icon it will say Run and your class name. Click the run icon and your first Java program will run. If everything is working properly, in the bottom pane, it will print “Hello World!”

If you have any problems post them in the DIC Java forum and you will be helped.


Is This A Good Question/Topic? 0
  • +

Replies To: Java Formatting

#2 Fuzzyness  Icon User is offline

  • Comp Sci Student
  • member icon

Reputation: 669
  • View blog
  • Posts: 2,438
  • Joined: 06-March 09

Re: Java Formatting

Posted 27 October 2009 - 10:52 PM

So usually when you have problems you need to state your problem.
So what seems to be the problem?

This post has been edited by Fuzzyness: 27 October 2009 - 10:52 PM

Was This Post Helpful? 0
  • +
  • -

#3 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8334
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Java Formatting

Posted 28 October 2009 - 06:22 PM

View Postrizwan_tahir, on 27 Oct, 2009 - 09:50 PM, said:

If you have any problems post them in the DIC Java forum and you will be helped.

Isn't that cute ?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1