Java Platform Module System: Difference between revisions

Content deleted Content added
The module system explicitly does not support versioning. Modules only have names, not versions. You cannot have multiple versions on the module path. It is officially recommended to have versions managed with an external tool like Maven or Gradle.
Line 13:
| accessdate=2015-11-29}}</ref> was created to modularize the JDK. This JSR was superseded by JSR 376 (Java Platform Module System).
 
Project Jigsaw was originally intended for [[Java 7]] (2011) but was deferred to [[Java 8]] (2014) as part of Plan B,<ref>{{cite web
| url=http://mreinhold.org/blog/plan-b
| title=It’s time for … Plan B
Line 19:
| author=Mark Reinhold
| date=2009-09-20
| accessdate=2017-06-21}}</ref> and again deferred to a [[Java 9]] release in 2017.<ref>{{cite web
| url=http://openjdk.java.net/projects/jdk9/
| title=JDK 9
Line 82:
</pre>
 
Contrary to the Jar file format, the module will describe these dependencies in a module declaration which will be placed in a file named ''module-info.java'' at the root of the module’s source-file hierarchy. The JDK will be able to check them both at compile-time and runtime. The JDK itself will be modularized for [[Java version history#Java SE 9|Java 9]].<ref>{{cite web
| url=http://cr.openjdk.java.net/~mr/jigsaw/ea/module-summary.html
| title=JDK Module Summary