Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Caliper work on Windows #167

Closed
GoogleCodeExporter opened this issue May 19, 2015 · 4 comments
Closed

Make Caliper work on Windows #167

GoogleCodeExporter opened this issue May 19, 2015 · 4 comments
Labels
status: fixed type=defect Bug, not working as expected
Milestone

Comments

@GoogleCodeExporter
Copy link

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@cpp.io on 6 Jul 2012 at 3:30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: fixed type=defect Bug, not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants