classpath

Michael Müller michael.mueller at mueller-bruehl.de
Sun Feb 12 15:03:41 UTC 2017


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 <http://blog.mueller-bruehl.de/>
it-rezension.de <http://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