JavaOne

EnfranchisedMind's Adventures at JavaOne 
« Back to blog

Modularity: JSR-294 and Beyond 3

The "javac classpath" is dead news is a bit oversold. For one thing, it's still there and usable. For another, modulepath steps in. This allows multiple modules to be compiled together: source files are compiled at the same time. [Interesting the push is away from schlepping around compiled code. -ed]
 
But classpath doesn't scale, and it's an implementation detail of javac.
 
Using modulepath, you can specify:
planetjdk/src:rssutils/rome
 
...and it will infer that there will contain directories representing modules.
 
When compiling com.smokejumperit.foo/* classes, javac looks for com.smokejumperit.foo/module-info.java and infers the module name.

Loading mentions Retweet

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    Connect    twitter