{"id":201,"date":"2025-07-26T05:55:00","date_gmt":"2025-07-26T05:55:00","guid":{"rendered":"https:\/\/harshad-sonawane.com\/blog\/?p=201"},"modified":"2025-07-12T15:02:34","modified_gmt":"2025-07-12T15:02:34","slug":"java-module-system-jpms-modern-applications","status":"publish","type":"post","link":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/","title":{"rendered":"Understanding the Java Module System (JPMS) in Modern Applications"},"content":{"rendered":"\n<p>With the release of <strong><a href=\"https:\/\/harshad-sonawane.com\/blog\/reduce-cloud-costs-java-applications\/\">Java<\/a> 9<\/strong>, the Java Platform introduced a significant architectural shift: the <strong>Java Platform Module System (JPMS)<\/strong>. While backward compatibility remains intact, JPMS enables developers to write better organized, secure, and scalable applications.<\/p>\n\n\n\n<p>In this blog post, we will explore:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>What JPMS is and why it was introduced<\/li>\n\n\n\n<li>Key concepts like modules, <code>module-info.java<\/code>, readability and accessibility<\/li>\n\n\n\n<li>How to migrate existing code to a modular structure<\/li>\n\n\n\n<li>Practical use cases in enterprise and <a href=\"https:\/\/harshad-sonawane.com\/blog\/build-high-performance-java-apis-using-grpc\/\">microservices<\/a> environments<\/li>\n\n\n\n<li>Best practices for adopting JPMS in modern Java projects<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Why JPMS Was Introduced<\/h2>\n\n\n\n<p>Before Java 9, all Java code lived in a flat classpath. This often led to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Classpath Hell<\/strong>: Conflicting versions of libraries, ambiguous dependencies.<\/li>\n\n\n\n<li><strong>Poor Encapsulation<\/strong>: All public classes were accessible to everyone.<\/li>\n\n\n\n<li><strong>Lack of Scalability<\/strong>: Difficulty trimming unused libraries for smaller footprints.<\/li>\n<\/ul>\n\n\n\n<p>To solve these, JPMS brought in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Explicit Dependency Management<\/strong><\/li>\n\n\n\n<li><strong>Strong Encapsulation<\/strong><\/li>\n\n\n\n<li><strong>Smaller Runtime Images (via <code>jlink<\/code>)<\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Core Concepts of JPMS<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Module<\/strong><\/h3>\n\n\n\n<p>A self-describing collection of packages and resources. Each module must declare itself with a <code>module-info.java<\/code> file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javaCopyEdit<code>module com.example.myapp {\n    requires java.sql;\n    exports com.example.myapp.services;\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong><code>requires<\/code> Clause<\/strong><\/h3>\n\n\n\n<p>Declares dependencies on other modules.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javaCopyEdit<code>requires java.base;\nrequires com.google.gson;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong><code>exports<\/code> Clause<\/strong><\/h3>\n\n\n\n<p>Exposes specific packages to other modules.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javaCopyEdit<code>exports com.example.api;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>Strong Encapsulation<\/strong><\/h3>\n\n\n\n<p>Only explicitly exported packages are accessible. Internal classes remain truly private, even with <code>public<\/code> modifier.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>Readability vs Accessibility<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Readability<\/strong>: Module A \u201creads\u201d Module B if it declares <code>requires<\/code>.<\/li>\n\n\n\n<li><strong>Accessibility<\/strong>: Only types in exported packages of B are accessible to A.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Migrating Existing Projects to JPMS<\/h2>\n\n\n\n<p>Here\u2019s a high-level plan for modularizing an existing Java application:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Identify Logical Boundaries<\/h3>\n\n\n\n<p>Break your app into meaningful units like <code>core<\/code>, <code>api<\/code>, <code>service<\/code>, <code>persistence<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Create <code>module-info.java<\/code> in Each Module<\/h3>\n\n\n\n<p>This defines what the module provides and consumes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Restructure Your Build Tool<\/h3>\n\n\n\n<p>For <strong>Maven<\/strong>, use:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">xmlCopyEdit<code>&lt;build&gt;\n  &lt;plugins&gt;\n    &lt;plugin&gt;\n      &lt;groupId&gt;org.apache.maven.plugins&lt;\/groupId&gt;\n      &lt;artifactId&gt;maven-compiler-plugin&lt;\/artifactId&gt;\n      &lt;configuration&gt;\n        &lt;release&gt;17&lt;\/release&gt;\n      &lt;\/configuration&gt;\n    &lt;\/plugin&gt;\n  &lt;\/plugins&gt;\n&lt;\/build&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Compile with <code>--module-path<\/code><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">bashCopyEdit<code>javac --module-path mods -d out --module com.example.myapp\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Practical Use Cases<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Enterprise Systems<\/h3>\n\n\n\n<p>Modularizing allows large teams to work independently across features while enforcing boundaries.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Microservices<\/h3>\n\n\n\n<p>With <code>jlink<\/code>, you can generate lean Java runtimes with only required modules, improving startup time and memory use.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Libraries<\/h3>\n\n\n\n<p>Library developers can expose only the public APIs and hide internal logic, increasing maintainability and reducing accidental usage.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"> Tooling Support<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>JDeps<\/strong>: Analyzes dependencies<\/li>\n\n\n\n<li><strong>JLink<\/strong>: Creates custom runtime images<\/li>\n\n\n\n<li><strong>JMod<\/strong>: Creates JDK-style module artifacts<\/li>\n\n\n\n<li><strong>Jigsaw<\/strong>: The reference implementation of JPMS<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Limitations and Gotchas<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Framework Compatibility<\/strong>: Some reflection-heavy libraries may break (Spring Boot handles this via <code>opens<\/code>).<\/li>\n\n\n\n<li><strong>Steep Learning Curve<\/strong>: Especially in polyglot environments with older libraries.<\/li>\n\n\n\n<li><strong>Split Packages<\/strong>: Not allowed\u2014refactor or combine packages into a single module.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Best Practices<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Start with clear module boundaries.<\/li>\n\n\n\n<li>Minimize use of <code>opens<\/code> and <code>reflective access<\/code>.<\/li>\n\n\n\n<li>Use JPMS incrementally\u2014start with internal modules.<\/li>\n\n\n\n<li>Keep module definitions consistent across environments (build, <a href=\"https:\/\/harshad-sonawane.com\/blog\/technical-debt-assessment-legacy-java-systems\/\">CI\/CD<\/a>, deployment).<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>JPMS marks a foundational shift in how Java applications are structured and deployed. By adopting it, developers gain better <strong>encapsulation<\/strong>, <strong>dependency clarity<\/strong>, and <strong>runtime optimization<\/strong>.<\/p>\n\n\n\n<p>While not every application needs full modularization today, understanding JPMS prepares you for future-ready, scalable Java development.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"o-typing-delay-100ms ticss-27f7e3e9\"><o-anim-typing>&lt;> <strong>&#8220;Happy developing, one line at a time!&#8221;<\/strong> &lt;\/><\/o-anim-typing><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the release of Java 9, the Java Platform introduced a significant architectural shift: the Java Platform Module System (JPMS). While backward compatibility remains intact, JPMS enables developers to write better organized, secure, and scalable applications. In this blog post, we will explore: Why JPMS Was Introduced Before Java 9, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":203,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":"","jetpack_publicize_message":"Just published a detailed breakdown on the Java Module System (JPMS) \u2014 a major shift in Java architecture since Java 9.\n\nThis post covers:\n\u2714 What JPMS is and why it matters\n\u2714 module-info.java explained\n\u2714 Migration strategies\n\u2714 Real-world use in enterprise & microservices\n\u2714 Gotchas and best practices","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[196],"tags":[192,194,193,191,189,195,190],"class_list":["post-201","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java-development-software-architecture-backend-engineering","tag-java-17","tag-java-architecture","tag-jdk-9","tag-jigsaw","tag-jpms","tag-modular-java","tag-module-system"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding the Java Module System (JPMS) in Modern Applications - &lt;&gt;HARSHAD&#039;s Dev Diary&lt;\/&gt;<\/title>\n<meta name=\"description\" content=\"Learn the fundamentals of the Java Platform Module System (JPMS) with hands-on examples, migration steps, and best practices for scalable, modular Java applications.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding the Java Module System (JPMS) in Modern Applications - &lt;&gt;HARSHAD&#039;s Dev Diary&lt;\/&gt;\" \/>\n<meta property=\"og:description\" content=\"Learn the fundamentals of the Java Platform Module System (JPMS) with hands-on examples, migration steps, and best practices for scalable, modular Java applications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/\" \/>\n<meta property=\"og:site_name\" content=\"&lt;&gt;HARSHAD&#039;s Dev Diary&lt;\/&gt;\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-26T05:55:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/harshad-sonawane.com\/blog\/wp-content\/uploads\/2025\/07\/ChatGPT-Image-Jul-12-2025-08_27_01-PM.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"HS\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HS\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/\"},\"author\":{\"name\":\"HS\",\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/#\\\/schema\\\/person\\\/d82781218ba30c34fa81b49e8393681e\"},\"headline\":\"Understanding the Java Module System (JPMS) in Modern Applications\",\"datePublished\":\"2025-07-26T05:55:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/\"},\"wordCount\":459,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/#\\\/schema\\\/person\\\/d82781218ba30c34fa81b49e8393681e\"},\"image\":{\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/ChatGPT-Image-Jul-12-2025-08_27_01-PM.png\",\"keywords\":[\"Java 17\",\"Java Architecture\",\"JDK 9+\",\"Jigsaw\",\"JPMS\",\"Modular Java\",\"Module System\"],\"articleSection\":[\"Java Development, Software Architecture, Backend Engineering\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/\",\"url\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/\",\"name\":\"Understanding the Java Module System (JPMS) in Modern Applications - &lt;&gt;HARSHAD&#039;s Dev Diary&lt;\\\/&gt;\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/ChatGPT-Image-Jul-12-2025-08_27_01-PM.png\",\"datePublished\":\"2025-07-26T05:55:00+00:00\",\"description\":\"Learn the fundamentals of the Java Platform Module System (JPMS) with hands-on examples, migration steps, and best practices for scalable, modular Java applications.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/#primaryimage\",\"url\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/ChatGPT-Image-Jul-12-2025-08_27_01-PM.png\",\"contentUrl\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/ChatGPT-Image-Jul-12-2025-08_27_01-PM.png\",\"width\":1024,\"height\":1024,\"caption\":\"Understanding the Java Module System (JPMS) in Modern Applications\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/java-module-system-jpms-modern-applications\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding the Java Module System (JPMS) in Modern Applications\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/\",\"name\":\"Harshad's Dev Diary\",\"description\":\"HARSHAD&#039;s Dev Diary\",\"publisher\":{\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/#\\\/schema\\\/person\\\/d82781218ba30c34fa81b49e8393681e\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/#\\\/schema\\\/person\\\/d82781218ba30c34fa81b49e8393681e\",\"name\":\"HS\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/about.jpg\",\"url\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/about.jpg\",\"contentUrl\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/about.jpg\",\"width\":400,\"height\":400,\"caption\":\"HS\"},\"logo\":{\"@id\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/about.jpg\"},\"sameAs\":[\"https:\\\/\\\/harshad-sonawane.com\\\/blog\"],\"url\":\"https:\\\/\\\/harshad-sonawane.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding the Java Module System (JPMS) in Modern Applications - &lt;&gt;HARSHAD&#039;s Dev Diary&lt;\/&gt;","description":"Learn the fundamentals of the Java Platform Module System (JPMS) with hands-on examples, migration steps, and best practices for scalable, modular Java applications.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/","og_locale":"en_US","og_type":"article","og_title":"Understanding the Java Module System (JPMS) in Modern Applications - &lt;&gt;HARSHAD&#039;s Dev Diary&lt;\/&gt;","og_description":"Learn the fundamentals of the Java Platform Module System (JPMS) with hands-on examples, migration steps, and best practices for scalable, modular Java applications.","og_url":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/","og_site_name":"&lt;&gt;HARSHAD&#039;s Dev Diary&lt;\/&gt;","article_published_time":"2025-07-26T05:55:00+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/harshad-sonawane.com\/blog\/wp-content\/uploads\/2025\/07\/ChatGPT-Image-Jul-12-2025-08_27_01-PM.png","type":"image\/png"}],"author":"HS","twitter_card":"summary_large_image","twitter_misc":{"Written by":"HS","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/#article","isPartOf":{"@id":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/"},"author":{"name":"HS","@id":"https:\/\/harshad-sonawane.com\/blog\/#\/schema\/person\/d82781218ba30c34fa81b49e8393681e"},"headline":"Understanding the Java Module System (JPMS) in Modern Applications","datePublished":"2025-07-26T05:55:00+00:00","mainEntityOfPage":{"@id":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/"},"wordCount":459,"commentCount":0,"publisher":{"@id":"https:\/\/harshad-sonawane.com\/blog\/#\/schema\/person\/d82781218ba30c34fa81b49e8393681e"},"image":{"@id":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/#primaryimage"},"thumbnailUrl":"https:\/\/harshad-sonawane.com\/blog\/wp-content\/uploads\/2025\/07\/ChatGPT-Image-Jul-12-2025-08_27_01-PM.png","keywords":["Java 17","Java Architecture","JDK 9+","Jigsaw","JPMS","Modular Java","Module System"],"articleSection":["Java Development, Software Architecture, Backend Engineering"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/","url":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/","name":"Understanding the Java Module System (JPMS) in Modern Applications - &lt;&gt;HARSHAD&#039;s Dev Diary&lt;\/&gt;","isPartOf":{"@id":"https:\/\/harshad-sonawane.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/#primaryimage"},"image":{"@id":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/#primaryimage"},"thumbnailUrl":"https:\/\/harshad-sonawane.com\/blog\/wp-content\/uploads\/2025\/07\/ChatGPT-Image-Jul-12-2025-08_27_01-PM.png","datePublished":"2025-07-26T05:55:00+00:00","description":"Learn the fundamentals of the Java Platform Module System (JPMS) with hands-on examples, migration steps, and best practices for scalable, modular Java applications.","breadcrumb":{"@id":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/#primaryimage","url":"https:\/\/harshad-sonawane.com\/blog\/wp-content\/uploads\/2025\/07\/ChatGPT-Image-Jul-12-2025-08_27_01-PM.png","contentUrl":"https:\/\/harshad-sonawane.com\/blog\/wp-content\/uploads\/2025\/07\/ChatGPT-Image-Jul-12-2025-08_27_01-PM.png","width":1024,"height":1024,"caption":"Understanding the Java Module System (JPMS) in Modern Applications"},{"@type":"BreadcrumbList","@id":"https:\/\/harshad-sonawane.com\/blog\/java-module-system-jpms-modern-applications\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/harshad-sonawane.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Understanding the Java Module System (JPMS) in Modern Applications"}]},{"@type":"WebSite","@id":"https:\/\/harshad-sonawane.com\/blog\/#website","url":"https:\/\/harshad-sonawane.com\/blog\/","name":"Harshad's Dev Diary","description":"HARSHAD&#039;s Dev Diary","publisher":{"@id":"https:\/\/harshad-sonawane.com\/blog\/#\/schema\/person\/d82781218ba30c34fa81b49e8393681e"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/harshad-sonawane.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/harshad-sonawane.com\/blog\/#\/schema\/person\/d82781218ba30c34fa81b49e8393681e","name":"HS","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/harshad-sonawane.com\/blog\/wp-content\/uploads\/2025\/02\/about.jpg","url":"https:\/\/harshad-sonawane.com\/blog\/wp-content\/uploads\/2025\/02\/about.jpg","contentUrl":"https:\/\/harshad-sonawane.com\/blog\/wp-content\/uploads\/2025\/02\/about.jpg","width":400,"height":400,"caption":"HS"},"logo":{"@id":"https:\/\/harshad-sonawane.com\/blog\/wp-content\/uploads\/2025\/02\/about.jpg"},"sameAs":["https:\/\/harshad-sonawane.com\/blog"],"url":"https:\/\/harshad-sonawane.com\/blog\/author\/admin\/"}]}},"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":2,"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"predecessor-version":[{"id":205,"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions\/205"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/media\/203"}],"wp:attachment":[{"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harshad-sonawane.com\/blog\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}