umakanta75 / caliper

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

In CaliperMain class, there is not a public main method #218

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and compile caliper, example, tutorial folders
2. Try to run Benchmark1 with: scripts/caliper tutorial.Tutorial.Benchmark1
3. Raises an issue saying that "no public static main method were found" (in 
CaliperMain the main method is not public) [original message: Erreur : la 
méthode principale est introuvable dans la classe 
com.google.caliper.runner.CaliperMain, définissez la méthode principale comme 
suit : public static void main(String[] args)]

What is the expected output? What do you see instead?
Launch the Benchmark1 without problems

What version of the product are you using? On what operating system?
commit 48b1f239a98604b13731e0b635b24edbe5be6ab0 

Environment:
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:    12.10
Codename:   quantal
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)

Original issue reported on code.google.com by jbotnasc...@gmail.com on 12 Feb 2013 at 1:46

GoogleCodeExporter commented 9 years ago
Patch

Original comment by jbotnasc...@gmail.com on 12 Feb 2013 at 2:00

Attachments:

GoogleCodeExporter commented 9 years ago
Traditionally, we have been running benchmarks using a main method in the 
individual benchmark that looks like:

public static void main(String[] args) throws Exception {
  CaliperMain.main(SomeBenchmark.class, args);
}

That said, it seems quite reasonable to support the other invocation style as 
well.

Original comment by gak@google.com on 12 Feb 2013 at 10:43

GoogleCodeExporter commented 9 years ago

Original comment by gak@google.com on 23 Apr 2013 at 11:55