Docsity

Getting Started - Java and the Web - Lecture Slides, Slides of Java Programming

Partial preview of the text

Download Getting Started - Java and the Web - Lecture Slides and more Slides Java Programming in PDF only on Docsity!

Getting Started with Eclipse

What’s Eclipse?

  • It is a free software / open source platform-independent software framework for delivering what the project calls "rich- client applications". Eclipse is also a community of users, constantly extending the covered application areas.
  • Eclipse was originally developed by IBM as the successor of its VisualAge family of tools.
  • Eclipse is now managed by the Eclipse Foundation, an independent not-for-profit consortium of software industry vendors.

Running a program

  • • Step 1: Open Eclipse, choose your workspaceEx: My workspace was “sp47” so the path to be set is “C:\Documents and Settings\sp47\dekstop”

Starting an Eclipse project

  • Step 2: In eclipse whenever you want to create a class , you need to select a New Project by default.

Step 4: Name the project and click the Finish button.

Creating your code

• You have these choices:

  • Create a file directly
  • Import a file
  • Creating a .jar file
  • Importing a .jar file

• The links above take you directly to that

portion of this presentation, or you can

follow through them in sequence.

Step 6: Select the project, name the Java class with extension and click “Finish”

Step 7: Using the java editor, start coding.

Step 9: Running the Java class. Right click on the class file and choose Run.

Step 10: Here is the output.

Importing a file into Eclipse

• Step 1: File option, choose Project and New

File as shown in the figure below.

Step 2: Select Project , choose Advance d option, click check box and Browse.

Imported file is shown in work space and loaded as the Default Package of the selected Project.

Step 4: Select the file and run it.