classpath
Bernd Eckenfels
ecki at zusammenkunft.net
Sun Feb 12 16:56:45 UTC 2017
Hello,
I guess "directory" refers to a exploded class hierarchy containing .class files as with the java launcher it does not observer .jar files. Maybe that could be described in the doc more explicitly.
Gruss
Bernd
--
http://bernd.eckenfels.net
On Sun, Feb 12, 2017 at 4:03 PM +0100, "Michael Müller" <michael.mueller at mueller-bruehl.de> wrote:
Hi,
formerly I could use
/classpath
~/Dropbox/Vortrag/ParallelStreams/ParallelStreams/target/ParallelStreams.jar
| Path '~/Dropbox/Vortrag/ParallelStreams/ParallelStreams/target/
ParallelStreams.jar' added to classpath
jshell> import de.muellerbruehl.parallelstreams.PersonManager
SInce this has become /env, I have trouble with it:
jshell> /env -class-path
~/Dropbox/Vortrag/ParallelStreams/ParallelStreams/target/ParallelStreams.jar
| Setting new options and restoring state.
jshell> /env
| --class-path
~/Dropbox/Vortrag/ParallelStreams/ParallelStreams/target/ParallelStreams.jar
jshell> import de.muellerbruehl.parallelstreams.PersonManager
| Error:
| package de.muellerbruehl.parallelstreams does not exist
| import de.muellerbruehl.parallelstreams.PersonManager;
| ^--------------------------------------------^
Although /env displays the added classpath, it is not recognized.
To add a classpath, I have to leave the shell and restart it with the
classpath option.
And btw. the doc states a directory will be accepted as classpath. But I
always have to add the fully qualified name of the jar. The directory
only does not work :(
--
Herzliche Grüße - Best Regards,
Michael Müller
Brühl, Germany
blog.mueller-bruehl.de
it-rezension.de
@muellermi
Read my books
"Web Development with Java and JSF": https://leanpub.com/jsf
"Java Lambdas and Parallel Streams":
http://www.apress.com/de/book/9781484224861
"Visitors" a photographic image book: https://leanpub.com/visitors
More information about the kulla-dev
mailing list