Get Started with Eclipse

Creating a Foundation Project with Eclipse
New Project

Select File -> New -> Project …

Select Foundation -> Foundation Project and press Next

Create Foundation Project

Enter:

  • Project Name: test1
  • Project Description: Foundation Project

Make sure that the Directory does not have any spaces and press Next.

Foundation Database

Select the Oracle 10g entry to use Oracle’s object types, use Oracle 8i/9i to create standard sql tables (required for use with Oracle Lite).

Enter the database information, the default port for Oracle is 1521. Modify the Database URL if necessary.

Enter a username and password for the database schema that will contain the application data.

Press Next.

Foundation Example Entities

Change the Business Class A, Business Class B and Business Association AB to suite the project.

  1. Each class must start with an F
  2. Business Association AB should be of the format FClassAClassBs

Click Finish.

Project Structure

The following project structure will now be created for you.

Defining the Application in the Database

Make sure you database is up and running.

Select the menu Run -> Run …

Click on New

In the Main tab enter:

  • Name: test1 define
  • Project: test1
  • Main Class: com.test1.client.Application

In the Arguments tab enter:

  • Program Arguments: -define
  • VM Arguments: -Djava.security.policy=policy

Press Apply, then Run.

This will bring up on the Database Definition window:

End the system password, or another user with DBA privileges and press Create All

The following warning message will appear, reminding you that the database user will be deleted and recreated.

Press OK.

The database will now be built

When the database has been created and the test data loaded.

Press OK when it is complete and exit the Database Definition window.

Any errors will be outputted to the Eclipse Console.

Running the Application

Select the menu Run -> Run …

Right click over the test1 define entry and select Duplicate

On the Main tab

Change the Name: test1 clientserver

On the Arguments tab

Change the Program arguments: -clientserver

Click Apply and then Run.

This will bring up the login window.

Login with the same username and password you used when you created the project. If you have forgotten it is stored in the FUser.txt file in the data directory.

Help

For any additional support check out the foundation website www.foundationdms.com or email support@foundationdms.com.