-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b158
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8175684 | 10 | Robert Field | P2 | Resolved | Fixed | b02 |
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.
--
Herzliche Grüße - Best Regards,
Michael Müller
=================
Cause: This is a tilde (~) expansion issue. The shell is expanding it. But not jshell.
/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.
--
Herzliche Grüße - Best Regards,
Michael Müller
=================
Cause: This is a tilde (~) expansion issue. The shell is expanding it. But not jshell.
- backported by
-
JDK-8175684 jshell tool: regression user home (tilde) not translated
-
- Resolved
-