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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed title: Make Caliper work on Windows
  • Added labels: Milestone-Post-1.0

@GoogleCodeExporter
Copy link
Author

I believe that windows is working @ HEAD

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

  • Changed state: Fixed

@cgdecker cgdecker modified the milestone: Post-1.0 May 20, 2015
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