-
Notifications
You must be signed in to change notification settings - Fork 0
Home
- Ensure that you are running Eclipse >= 3.5 (Galileo)
- In Eclipse go to Help -> Install New Software
- In the new window selected "Add"
- The name is up to you but, set "Location" to http://cbes.javaforge.com/update
- From the "Work with:" drop down menu select the update site that you just entered from the previous step
- Check the "MercurialEclipse" check box, select "Next" and go through the install process.
-
Open up the Eclipse IDE and go to File->Import
-
Open the Mercurial Folder and chose "Clone Existing Mercurial Repository"
-
set URL, under Repository Location, to: "http://babelfish.arc.nasa.gov/hg/jpf/jpf-core"
-
Press Next and Eclipse Should start Cloning the repository
-
Select the default Working directory revision (Just press Next)
-
Once that is done, just click Finish
-
It should complete and start to Build
-
Most likely it should fail because you need to create a "site.properties" file under "<user.home>/.jpf/"
-
For more information on site.properties files go here: http://babelfish.arc.nasa.gov/trac/jpf/wiki/install/site-properties
-
My Eclipse project I created for JPF and TIE is under "C:/Tie" and therefore this is how my site.properties file looks
-
If there are still some Build failures, this link should help fix that: http://babelfish.arc.nasa.gov/trac/jpf/wiki/install/build
#JPF site configuration jpf-core = C:/TIE/jpf-core # numeric extension # jpf-numeric = ${user.home}/projects/jpf/jpf-numeric # annotation-based program properties extension # jpf-aprop = ${user.home}/projects/jpf/jpf-aprop # extensions=${jpf-core},${jpf-aprop} #... and all your other installed project
- Ensure that you are running Eclipse >= 3.5 (Galileo)
- In Eclipse go to Help -> Install New Software
- In the new window selected "Add"
- The name is up to you but, set "Location" to http://babelfish.arc.nasa.gov/trac/jpf/raw-attachment/wiki/install/eclipse-plugin/update/
- From the "Work with:" drop down menu select the update site that you just entered from the previous step
- Check the "Eclipse-JPF" check box, select "Next" and go through the install process.
- Right click on the a .jpf file. Examples can be found in the src\examples directory in jpf-core
- If the eclipse plugin is correctly installed, a Verify option will appear.
- Select the Verify option and the verification process of the system specified in the .jpf file begins
- From Eclipse, open jpf-core and then src/main
- You will see several packages with names all starting with "jpf.nasa.jpf"
- Create a new package called "jpf.nasa.jpf.gVisualizer" under src/main
- Extract all source files into this new package
- Now navigate to back up to jpf-core and then to src/examples
- The source code to the example files can be put into default package where the other source codes are
- The ".jpf" file for the source codes can be placed into the src/examples folder
- In order to run TIE on any concurrent program, open up its respective ".jpf" file and add the line "listener=gov.nasa.jpf.gVisualizer.JPFVisualization"
- If a "listener=" line is already there, just add a comma and then add the gVisualizer line
Example: "listener=gov.nasa.jpf.listener.PreciseRaceDetector,gov.nasa.jpf.gVisualizer.JPFVisualization"
- As long as there is a ".jpf" file created for the program being tested, you can right click on the a .jpf file
- If the eclipse plugin is correctly installed, a Verify option will appear.
- Select the Verify option and the verification process of the system specified in the .jpf file begins
- Examples can be found in the src\examples directory in jpf-core