> On 8 May 2019, at 20:02, Abhishek Dhadwal <dhadwal1...@gmail.com> wrote:
> 
> Dear Sir,
> If you want to look at the Javadocs then you can build them locally from 
> the commons-rng-examples/examples-jmh directory by running:
> 
> mvn javadoc:javadoc
> 
> The output will be in:
> 
> target/site/apidocs/index.html
> 
> There was no output. Kindly check the slack for more details. 

You have to run Maven from the appropriate sub-directory. Your screenshot on 
Slack shows you are in the top level commons-rng directory:

$ cd commons-rng-examples/examples-jmh
$ mvn javadoc:javadoc

That should work.

> FYI.
> 
> A good place to start with benchmarking would be to run through all the 
> tutorials in the JMH project:
> 
> https://openjdk.java.net/projects/code-tools/jmh/ 
> <https://openjdk.java.net/projects/code-tools/jmh/>
> 
> Do this:
> 
>  > hg clone http://hg.openjdk.java.net/code-tools/jmh/ 
> <http://hg.openjdk.java.net/code-tools/jmh/> jmh
> 
>  > cd jmh
> 
>  > hg up 1.21
> 
>  > cd jmh-samples
> 
> Then start reading the benchmark sample tutorials in:
> 
> src/main/java/org/openjdk/jmh/samples/
> 
> E.g. to run the first one:
> 
>  > mvn clean install
> 
>  > java -jar target/benchmarks.jar JMHSample_01
> 
>  I performed the required tasks, the following output happened :
> C:\Users\abhi1\Documents\GitHub\commons-rng> java -jar target/benchmarks.jar 
> JMHSample_01
> Error: Unable to access jarfile target/benchmarks.jar
> I checked the folder, there was no file called 'benchmarks.jar'
> Regards,
> Abhishek

The JMH tutorial requires you to download JMH from its own source repository. 
They use Mercurial (an alternative source control system from git). This is the 
‘hg’ command (Mercury is element Hg) in the list of instructions I sent.

Try running through them step-by-step. It should work as these are the commands 
that I used to get it running.

Alex


Reply via email to