<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Jdk on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/jdk/</link>
    <description>Recent content in Jdk on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo -- 0.147.8</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #213243b1d6e8932079e09227d3f3ed0c806cd0c9</copyright>
    <lastBuildDate>Mon, 02 Oct 2017 00:00:00 +0200</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/jdk/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Microbenchmarks with JMH / Java Microbenchmark Harness</title>
      <link>https://www.hascode.com/microbenchmarks-with-jmh-/-java-microbenchmark-harness/</link>
      <pubDate>Mon, 02 Oct 2017 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/microbenchmarks-with-jmh-/-java-microbenchmark-harness/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Writing microbenchmarks for parts of our applications is not always easy – especially when the internals of the virtual machine, the just-in-time-compiler and such things are coming into effect.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Java Microbenchmark Harness is a tool that takes care of creating JVM warmup-cycles, handling benchmark-input-parameters and running benchmarks as isolated processes etc.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Now following a few short examples for writing microbenchmarks with JMH.&lt;br/&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;java-jmh-microbenchmark-in-intellij.png&#34; alt=&#34;java jmh microbenchmark in intellij&#34;/&gt;
&lt;/div&gt;
&lt;div class=&#34;title&#34;&gt;Figure 1. Java JMH Microbenchmarks running in IntelliJ&lt;/div&gt;</description>
    </item>
    <item>
      <title>Snippet: Java 9 Modules and JPMS</title>
      <link>https://www.hascode.com/snippet-java-9-modules-and-jpms/</link>
      <pubDate>Mon, 17 Apr 2017 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/snippet-java-9-modules-and-jpms/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Playing around with the new module system in Java 9 I simply wanted to write down how to achieve the most basic tasks.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Therefore I created the following module how-to based upon a simple demonstration project consisting of two dependant modules.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;component-diagram.png&#34; alt=&#34;component diagram&#34;/&gt;
&lt;/div&gt;
&lt;div class=&#34;title&#34;&gt;Figure 1. Modules Component-Diagram&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_prerequisites_and_setup&#34;&gt;Prerequisites and Setup&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We need an early access build of the Java ™ 9 JDK, available for download &lt;a href=&#34;https://jdk9.java.net/download/&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In addition we should make sure, that our environment variable &lt;em&gt;JAVA_HOME&lt;/em&gt; is set to the corresponding directory and calling &lt;em&gt;java -version&lt;/em&gt; returns something similar to this:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
