-classpath vs --class-path
nipa at codefx.org
Thu Jan 5 11:23:02 UTC 2017
during experimentation I encountered compiler behavior that I found
rather strange: It looks like the -classpath and --class-path options do
not behave the same way.
In my experiment I create a bunch of modules in 'mods' and then create
the last one by putting the modules on the class path (no reason, just
javac -cp "mods/*" -d classes/advent src/advent/advent/Main.java
This works and '-classpath' does, too, but '--class-path' doesn't. In
that case the compiler complains that the packages contained by the
modules in 'mods' do not exist.
For an executable version see here:
I noticed this on b146 but it also exists in b148; both EA-Jigsaw builds.
so long ... Nicolai
a blog about software development
high-quality Java/JVM content
Free and Open Source Software for the City of Dortmund
More information about the jigsaw-dev