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

idea.sh script doesn't work on WSL 1 and 2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • infrastructure
    • None
    • b09

      The bin/idea.sh script doesn't work on WSL 1 and 2.

      mv: cannot stat '/mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger$MessageKind.class.tmp': No such file or directory
      mv: cannot stat '/mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger$StatusEvent$StatusTask.class.tmp': No such file or directory
      bin/idea.sh: 1: eval: cannot create /mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger/mnt/c/jdk/.idea/classes/idea/JdkIdeaAntLogger$StringBinaryPredicate$1.class.class.tmp: Directory nonexistent
      ....


      There are three issues.

      1) this script use javac, however, there is javac.exe in boot JDK instead of javac.
      2) javac.exe in Windows directory uses ant.jar in WSL directory
      3) paths used in this script are on WSL, however, IDEA uses Path on Windows

            cito Chihiro Ito
            cito Chihiro Ito
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: