I want to use JPF (Java Path Finder) from another java project.
Steps that i have done:
I have created a new Java project
Referenced the jpf-core in build path.
Created a java class(Test.java) printing Hello world (in my new project).
Created a .jpf file (Test.jpf) in that i have mentioned, target=Test.
In the eclipse launch configuration i have mentioned
project = jpf-core Main Class = gov.nasa.jpf.tool.RunJPF
My problem is If i place the same .java file and .jpf file in jpf-core/examples package in jpf-core project i am able to run the jpf file and get the results. But when i am trying to run the .jpf from another java project i am unable to do so. I am getting the following error
[SEVERE] can't find startup class: Test`
[SEVERE] error initializing startup classes (check 'classpath')
Please help me to resolve this.
Update:
Do i have to write any properties file mentioning the classpath of my Test class files? If i write so how do i link up them with jpf.properties?
Your other project needs to reference the project that contains the Test class. Otherwise it is obviously not on the classpath. Check the Project tab under Build-Path.