ccristian / caliper

Automatically exported from code.google.com/p/caliper
Apache License 2.0
0 stars 0 forks source link

Make Caliper work on Windows #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.build caliper
2.run DemoBenchmark

What is the expected output? What do you see instead?
The output is:
java.lang.IllegalArgumentException
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:72)
    at com.google.caliper.runner.VirtualMachine.<init>(VirtualMachine.java:64)
    at com.google.caliper.runner.VirtualMachine.hostVm(VirtualMachine.java:35)
    at com.google.caliper.runner.CaliperRun.createVms(CaliperRun.java:153)
    at com.google.caliper.runner.CaliperRun.run(CaliperRun.java:81)
    at com.google.caliper.runner.CaliperMain.exitlessMain(CaliperMain.java:88)
    at com.google.caliper.runner.CaliperMain.main(CaliperMain.java:58)
    at com.google.caliper.runner.CaliperMain.main(CaliperMain.java:47)
    at examples.DemoBenchmark.main(DemoBenchmark.java:72)

An unexpected exception has been thrown by the caliper runner.
Please see https://sites.google.com/site/caliperusers/issues

it is because of wrong execPath. The execPath on my machine is "C:\Program 
Files (x86)\Java\jdk1.7.0_04\jre/bin/java", should be "C:\Program Files 
(x86)\Java\jdk1.7.0_04\jre/bin/java.exe". 

What version of the product are you using? On what operating system?
D:\os\caliper\caliper>mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
Maven home: C:\portable\maven\bin\..
Java version: 1.7.0_04, vendor: Oracle Corporation
Java home: C:\Program Files (x86)\Java\jdk1.7.0_04\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

Please provide any additional information below.

Original issue reported on code.google.com by me@sunchangming.com on 6 Jul 2012 at 3:30

GoogleCodeExporter commented 9 years ago
I suspect that this might be due to our woefully inadequate windows support.  
It might be a while before have any good answers for windows users.

Original comment by gak@google.com on 29 Oct 2012 at 5:51

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 1 Nov 2012 at 8:32

GoogleCodeExporter commented 9 years ago

Original comment by gak@google.com on 1 Nov 2012 at 9:20

GoogleCodeExporter commented 9 years ago
I believe that windows is working @ HEAD

Original comment by gak@google.com on 28 Aug 2013 at 4:00