User Tools

Site Tools


project1

Part 1 of Project

Install JPF on your laptop. On Friday February 2, bring your laptop to the lab and show the TA how to run JPF. If you have correctly installed JPF and you can run JPF successfully on the code provided below, then you will receive 5% towards the mark for your project (30% in total). Otherwise, you can try again next week (1% penalty per week).

  • Create the app
package lab;
 
public class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello World!");
  }
}
  • Run JPF on this app.
  • Run JPF on the HelloWorld class of the default package.
  • Print the state space the created app.

Note: it seems that the version of Java is important (see here). I managed the build JPF with Java 1.8.0_144. To determine which version of Java is used by eclipse, you can run the following app in eclipse.

public class Version {
  public static void main(String[] args) {
    System.out.println(System.getProperty("java.version"));
  }
}
project1.txt · Last modified: 2018/01/31 02:31 by franck