[program-java] Eclipse Tutorial: #1

  • From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>
  • To: <program-java@xxxxxxxxxxxxx>
  • Date: Fri, 31 Oct 2008 07:42:12 -0500

So far we have created the workspace, the project, a package with in the
project titled main.... Note lower case m, created a class with in
package main titled Main.... Note the upper case m.

What we essentially have here is an entry point to the application which
can be referred to as a MVC (multi view control).

Now we need to run this thing.... 

From the Run menu select "Run Last Launch" or F11.

You will now be placed on the Run / Launch Configuration screen.... Tab
once to the tree view and scroll down to the option for Java Program.
Press "Enter" on this selection, by default you should hear and or see
Main...

Tab once to confirm the name as Main...

Tab twice to hear and or see the project name... in this case
first_time....

Tab twice more to locate the Main Class.... Don't get confused with
"Main Class" and your class Main. "Main Class" can be assumed to be the
entry point of the application and or the start up point.

In our case you should hear and or see main.Main.... take a look at the
mix of upper and lower cases....

Continue to tab until you locate the "Run" button.... Press enter and
there you go....

If you have followed these steps then outwardly you will notice nothing,
which is a good thing.

Next week we will tackle debugging....

Jim 


James M. Corbett

A / Technical Specialist
GST / HST Micro Development
875 Herron Rd / Ottawa / Ontario

(613) 941-1338

"I'm Jim Corbett and I approve this message."
 

Other related posts: