User Tools

Site Tools


project1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
project1 [2017/01/30 13:52] franckproject1 [2020/01/19 19:59] (current) franck
Line 1: Line 1:
 ====== Part 1 of Project ====== ====== 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).
-Install JPF on your laptop.  On Monday, bring your laptop to the lab and show the TA how to run JPF.  Java code, to be checked by JPF, will be provided on Monday.  If you have correctly installed JPF and you can run JPF successfully on the provided code, then you will receive 5% towards the mark for your project (40% in total).  Otherwise, you can try again next week (1% penalty per week).+
  
   * Create the app   * Create the app
Line 8: Line 7:
 package lab; package lab;
  
-public class HelloWorld +public class HelloWorld { 
-+  public static void main(String[] args) {
-  public static void main(String[] args) +
-  {+
     System.out.println("Hello World!");     System.out.println("Hello World!");
   }   }
Line 18: Line 15:
   * Run JPF on this app.   * Run JPF on this app.
   * Run JPF on the HelloWorld class of the default package.   * Run JPF on the HelloWorld class of the default package.
-  * Print the state space the created app.+  * Print the state space of the created app. 
 + 
 +Note: it seems that the version of Java is important (see [[https://groups.google.com/forum/#!topic/java-pathfinder/IHhqtXJwy2M|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. 
 +<code java> 
 +public class Version { 
 +  public static void main(String[] args) { 
 +    System.out.println(System.getProperty("java.version")); 
 +  } 
 +
 +</code> 
  
  
project1.1485784375.txt.gz · Last modified: 2017/01/30 13:52 by franck