## Click OK (in the lower right you should see some action briefly while it builds everything).

-

1. Add Class Folder...

+

# ''At this point I had to restart Eclipse before going on to the next step. I am not sure what the problem is but no matter how many times I tried to do this I always had to restart eclipse or I would be unable to set a Main Class.''

-

2. Check esrc, safej, bin/resources and click OK.

+

# Setup a build configuration for Rune.

-

3. Add JARs...

+

## Run -> Open Run Dialog...

-

4. Select bin/win32/x86/swt.jar and click OK

+

## Select Java Application and click New (top left button).

-

5. Click OK (in the lower right you should see some action briefly while it builds everything).

+

## On the "Main" tab:

-

+

### Name: Rune

-

''At this point I had to restart Eclipse before going on to step 7. I am not sure what the problem is but no matter how many times I tried to do this I always had to restart eclipse or I would be unable to set a Main Class.''

+

### Project: E-Source

-

+

### Main class: org.erights.e.elang.interp.Rune

-

7. Setup a build configuration for Rune.

+

## (Optional) Go to the Common tab and check the box for "Run" under "Display in favorites menu". This will make running Rune easier.

-

1. Run -> Open Run Dialog...

+

## Apply and Close.

-

2. Select Java Application and click New (top left button).

+

# Verify it all worked.

-

3. On the "Main" tab:

+

## Run -> Open Run Dialog...

-

1. Name: Rune

+

## Select Rune and click "Run".

-

2. Project: E-Source

+

## (Optional) If you added it to the favorites menu you can just use the Run tool in the toolbar which should have "Rune" listed in the dropdown.

-

3. Main class: org.erights.e.elang.interp.Rune

+

## In the Console window you should see a '?' and nothing else. Try typing the following followed by enter: 1 + 1

-

4. (Optional) Go to the Common tab and check the box for "Run" under "Display in favorites menu". This will make running Rune easier.

+

## If all went well you should see # value: 2 followed by another '?'

-

5. Apply and Close.

+

-

+

-

8. Verify it all worked.

+

-

1. Run -> Open Run Dialog...

+

-

2. Select Rune and click "Run".

+

-

3. (Optional) If you added it to the favorites menu you can just use the Run tool in the toolbar which should have "Rune" listed in the dropdown.

+

-

4. In the Console window you should see a '?' and nothing else. Try typing the following followed by enter: 1 + 1

# In the HelloWorld.e edit window enter this code and save the file: println("Hello World")

-

2. File name: HelloWorld.e

+

# Run -> Open Run Dialog...

-

3. Finish

+

## Select Java Application

-

+

## Click the "New" button (top left)

-

5. In the HelloWorld.e edit window enter this code and save the file:

+

## Main tab:

-

println("Hello World")

+

### Name: Hello World

-

+

### Project: Hello World

-

6. Run -> Open Run Dialog...

+

### Main Class: org.erights.e.elang.interp.Rune

-

1. Select Java Application

+

## Arguments tab:

-

2. Click the "New" button (top left)

+

### Program arguments: HelloWorld.e

-

3. Main tab:

+

### Working directory: Other: Workspace...: Hello World/Output

-

1. Name: Hello World

+

### Apply and Run

-

2. Project: Hello World

+

# If all went well you should see "Hello World" in the console window.

-

3. Main Class: org.erights.e.elang.interp.Rune

+

-

4. Arguments tab:

+

-

1. Program arguments: HelloWorld.e

+

-

2. Working directory: Other: Workspace...: Hello World/Output

+

-

3. Apply and Run

+

-

+

-

7. If all went well you should see "Hello World" in the console window.

+

-

+

== Tips ==

== Tips ==

-

* For learning E create a Run configuration just like you did for Hello World but in the arguments put "${file_prompt}" (no quotes). Doing this will make it so when you run that configuration it will prompt you for a file and pass that filename as an argument to Rune. This will make it so you can create numerouse .e files in your project and only have to have one Run configuration (just use the open dialog to specify which .e file you want to pass to Rune).

+

* For learning E, create a Run configuration just like you did for Hello World but in the arguments put "${file_prompt}" (no quotes). Doing this will make it so when you run that configuration it will prompt you for a file and pass that filename as an argument to Rune. This will make it so you can create numerouse .e files in your project and only have to have one Run configuration (just use the open dialog to specify which .e file you want to pass to Rune).

Click OK (in the lower right you should see some action briefly while it builds everything).

At this point I had to restart Eclipse before going on to the next step. I am not sure what the problem is but no matter how many times I tried to do this I always had to restart eclipse or I would be unable to set a Main Class.

Setup a build configuration for Rune.

Run -> Open Run Dialog...

Select Java Application and click New (top left button).

On the "Main" tab:

Name: Rune

Project: E-Source

Main class: org.erights.e.elang.interp.Rune

(Optional) Go to the Common tab and check the box for "Run" under "Display in favorites menu". This will make running Rune easier.

Apply and Close.

Verify it all worked.

Run -> Open Run Dialog...

Select Rune and click "Run".

(Optional) If you added it to the favorites menu you can just use the Run tool in the toolbar which should have "Rune" listed in the dropdown.

In the Console window you should see a '?' and nothing else. Try typing the following followed by enter: 1 + 1

If all went well you should see # value: 2 followed by another '?'

Creating a JAR File

1. Follow the directions above for Installation/Setup.

2. File -> Export...

3. Java -> JAR file (Next)

4. Under E-Source check: jsrc, esrc, safej, bin/resources

5. JAR file: E-Source/e.jar

You will get several warnings, some of which are Java compiler warnings regarding generics which need to be resolved in the E source tree and a few at the end are regarding duplications found in the output. The latter may also require fixes in the build tree, further investigation is required though.

6. Finish

Hello World

Follow the directions above for Installation/Setup and JAR file creation.

File -> New -> Java Project

Project name: Hello World

Contents: Create new project in workspace

JRE: Use default JRE

Project layout: Create separate folders for sources and class files

Next

Libraries tab:

Add JARs...

Select E-Source/e.jar and click OK

Finish

File -> New -> File

Hello World/Source

File name: HelloWorld.e

Finish

In the HelloWorld.e edit window enter this code and save the file: println("Hello World")

Run -> Open Run Dialog...

Select Java Application

Click the "New" button (top left)

Main tab:

Name: Hello World

Project: Hello World

Main Class: org.erights.e.elang.interp.Rune

Arguments tab:

Program arguments: HelloWorld.e

Working directory: Other: Workspace...: Hello World/Output

Apply and Run

If all went well you should see "Hello World" in the console window.

Tips

For learning E, create a Run configuration just like you did for Hello World but in the arguments put "${file_prompt}" (no quotes). Doing this will make it so when you run that configuration it will prompt you for a file and pass that filename as an argument to Rune. This will make it so you can create numerouse .e files in your project and only have to have one Run configuration (just use the open dialog to specify which .e file you want to pass to Rune).