Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8174796

jshell tool: regression user home (tilde) not translated

XMLWordPrintable

    • b158
    • Verified

        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.

              rfield Robert Field (Inactive)
              rfield Robert Field (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: