< Policy-based Resilience Simulator with OMNeT++

Locating Ponder2 Directory

In the same deliverable folder mentioned in previous article, there will be a folder named "ponder2". Copy it to your omnetpp directory.

Install dependencies

Following dependency need to be installed before proceeding any further:

ant openjdk-7-jdk

Checking $JAVA_HOME variable

Now, type

echo $JAVA_HOME

in terminal. If there's something appearing, you can proceed- or else, follow this instruction or ant will not build Ponder.

Rebuilding Ponder2

Navigate to pondet2 directory in terminal and run

ant rebuild

Now, you may get the following error:

[apt] /home/jesse/omnetpp-4.1/ponder2/src/net/ponder2/support/CheckRMI.java:2: error: unmappable character for encoding UTF8
[apt]  * Copyright � 2007 Kevin Twidle, Imperial College, London, England.
[apt] 1 error

The error was caused by that character represented as "�" (which is "©" in real). To correct this, open the file

/home/jesse/omnetpp-4.1/ponder2/src/net/ponder2/support/CheckRMI.java

and removed that line from there- it doesn't matter, its just a comment-line. Save it, now run

ant rebuild

Now, Ponder is ready to go.

Running Ponder

In the same folder, run

ant run

in terminal to run Ponder2.

Checking Install

Now to check your install, you can follow the original article to run the example simulation provided in resilience folder.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.