[Java Path Finder][JPF学习笔记][2]在Windows Server上安装JPF
来源:互联网 发布:淘宝安装师傅接单平台 编辑:程序博客网 时间:2024/05/21 12:46
下载完成相应组件后,从控制台进入jpf-core安装目录(以jpf-core的安装为例,毕竟这个是必须的),如C:\Documents and Settings\Administrator\jpf\jpf-core中,运行
然后ant会出现很多信息,如果顺利的话,会在最后出现
Total time: 2 minutes 31 seconds
类似这样的信息。但是我在自己服务器上build的结果是会有一个报错:
C:\Documents and Settings\Administrator\jpf\jpf-core\build.xml:350: Test gov.nasa.jpf.test.mc.data.PerturbatorTest failed
但是经过上述Build运行之后,已经能够成功生成“build”文件夹了。当然,如果不通过repositories进行安装,则更为简单和便捷,在JPF的每个组件的介绍页面的最下部,都有相应ZIP文件夹包含了已经编译好的对应项目,例如jpf-core的zip文件可以通过链接:http://babelfish.arc.nasa.gov/trac/jpf/wiki/projects/jpf-core#no1 直接看到。
接下来我们简单通过Eclipse来看看JPF的功能,参考页面http://babelfish.arc.nasa.gov/trac/jpf/wiki/install/eclipse-plugin 中提示的最简单步骤(Using the Update Site (Simplest Method))可以很简单地安装JPF的Eclipse Plugin。但是如果仅仅安装该Plugin,还是不能正常在Eclipse中运行JPF。需要进行下述检查及设置:
1. 创建site.properties文件并进行设置。
在安装好Eclipse插件后,在Eclipse主界面Window--Preferences--JPF Preferences中的Path to site properties可以看到,该插件对site.properties的默认位置是:C:\Documents and Settings\Administrator\.jpf\site.properties (这个每个系统会有微小差异),方便起见,我们可以将site.properties文件创建在该位置。在JPF主页上有对site.properties在window下创建的示例:http://babelfish.arc.nasa.gov/trac/jpf/attachment/wiki/install/site-properties/site.properties-windows
2. 在Eclipse中运行JPF插件。
正如这个页面中http://babelfish.arc.nasa.gov/trac/jpf/wiki/install/build 中讲到的,Specify classpath=PATH_TO_BIN_DIRECTORY to add the class files for the program under test to JPF's class path. Windows users will need to use the double-backslash notation in specifying paths in the .jpf file. 和命令行相比,在Eclipse中运行稍微麻烦一些,需要在.jpf文件中指定classpath,classpath的值就是需要进行检验的java文件对应的bin目录,例如,如果要对HelloWorld这个类进行检验,那么classpath应设置成类似:
的值。上面的页面还很细心地提到注意将单斜杠换成双斜杠。
更改好之后,在Eclipse IDE下右键单击对应的.jpf文件,选择“Verify”,就可以用JPF分析目标文件并产生结果了。这次就记这么多。
【连载,未完待续】
- [Java Path Finder][JPF学习笔记][2]在Windows Server上安装JPF
- [Java Path Finder][JPF学习笔记][1]在Windows Server上安装JPF
- [Java Path Finder][JPF学习笔记][3]使用jpf-shell
- [Java Path Finder][JPF学习笔记][6]jpf-symbc的初步使用
- [Java Path Finder][JPF学习笔记][7]JPF输出详细程度设置
- [Java Path Finder][JPF学习笔记][8]几篇使用JPF的论文
- [Java Path Finder][JPF学习笔记][4]将JPF源码导入Eclipse
- [Java Path Finder][JPF学习笔记][4]将JPF源码导入Eclipse
- [Java Path Finder][JPF学习笔记][5]编译jpf-symbc报错的解决方法
- Java Plugin Framework (JPF) java插件框架学习
- JPF 简介
- java 插件程序开发框架-jpf
- 8dVASair max運動鞋台灣哪裡找 2JPf KzI
- Java PathFinder (JPF) 在Eclipse和NetBeans中的配置方法(综合网上资料)
- JPF Configuration Parameters
- JSF, JPF, Struts, SDO(转载的)
- Bea Weblogic Workshop8.1 JPF开发经验总结
- JSF,JPF,Struts,SDO小探
- TACAS(International Conference on Tools and Algorithms for the Construction and Analysis of Systems)到底是什么档次的会议?
- [经验总结]怎样通过JMeter监控Tomcat性能
- 在ubuntu上安装Ocaml的RPM包的一点经验
- [经验]在Windows Server上安装Metasploit Framework 3.7.1出现问题及解决方法
- [Java Path Finder][JPF学习笔记][1]在Windows Server上安装JPF
- [Java Path Finder][JPF学习笔记][2]在Windows Server上安装JPF
- Soot为什么经常被用作Instrumentation的Framework?
- 基于Soot和temiflex对Dacapo数据集进行静态分析
- Windows系统不重启而使环境变量生效的方法
- 静态分析实验数据集总结[1]
- Windows Server 2008运行Delphi程序报xxxxx.bpl错误
- Java Grande benchmark suite总结
- 搜索、查询及下载LNCS论文的快捷方法
- Satisfiability Modulo Theories Competition (SMT-COMP)