User Tools

Site Tools


project1

Part 1 of Project

Install JPF on your laptop. On Friday January 26, bring your laptop to the lab and show the instructor 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 (50% 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 of 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 and 1.8.0_181. I have not been able to build it with Java 9 or Java 11. You can have multiple different versions of Java on your machine.

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: 2020/01/19 19:59 by franck