从Linux终端加载Java类



我试图用适当的基准java类(cnf.files)加载我的java线束类(DaCapo基准套件)。在windows中,命令"java Harness"工作得非常好。然而,由于我是Linux的新手,当我尝试加载我的java线束类时,我收到了"未知基准"的消息。请注意,"java Harness -l"显示了这个java Harness类的所有可用基准测试。

你知道我怎么能加载我的java线束类,就像我在Windows?

  -s,--size <SIZE>                       Size of input data
    --scratch-directory <dir>           Specify an alternate scratch
                                        directory <dir>
 -t,--thread-count <thread_count>       Set the thread count to drive the
                                        workload (mutually exclusive -k)
 -v,--verbose                           Verbose output
    --validation-report <report_file>   Report digests, line counts etc
    --variance <pct>                    Target coefficient of variation
                                        <pct> (default 3.0)
    --window <window>                   Measure variance over <window>
                                        runs (default 3)
spyros@spyros-G41M-Combo:~/workspace/SpyDacaPo$ java Harness -l
/home/spyros/workspace/SpyDacaPo/cnf/HelloWorld /home/spyros/workspace/SpyDacaPo/cnf/binarytrees /home/spyros/workspace/SpyDacaPo/cnf/fannkuchredux /home/spyros/workspace/SpyDacaPo/cnf/fastaredux /home/spyros/workspace/SpyDacaPo/cnf/foo /home/spyros/workspace/SpyDacaPo/cnf/mandelbrot /home/spyros/workspace/SpyDacaPo/cnf/meteor /home/spyros/workspace/SpyDacaPo/cnf/nbody /home/spyros/workspace/SpyDacaPo/cnf/pidigits /home/spyros/workspace/SpyDacaPo/cnf/regexdna /home/spyros/workspace/SpyDacaPo/cnf/revcomp
spyros@spyros-G41M-Combo:~/workspace/SpyDacaPo$ java Harness HelloWorld
Unknown benchmark: HelloWorld
spyros@spyros-G41M-Combo:~/workspace/SpyDacaPo$

必须将HelloWorld的路径添加到classpath:

java -cp .:/home/spyros/workspace/SpyDacaPo/cnf/ Harness HelloWorld

相关内容

  • 没有找到相关文章

最新更新