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

After installing OpenJDK and Oracle JDK, the javac command cannot be executed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 8u281
    • install
    • x86_64
    • linux

      A DESCRIPTION OF THE PROBLEM :
      After installing OpenJDK and Oracle JDK, the javac command cannot be executed.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      # java -version
      openjdk version "1.8.0_282"
      OpenJDK Runtime Environment (build 1.8.0_282-b08)
      OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
      # javac -version
      javac 1.8.0_282
      # rpm -ivh jdk-8u281-linux-x64.rpm
      warning: jdk-8u281-linux-x64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
      Preparing... ################################# [100%]
      Updating / installing...
         1:jdk1.8-2000:1.8.0_281-fcs ################################# [100%]
      Unpacking JAR files...
              tools.jar...
              plugin.jar...
              javaws.jar...
              deploy.jar...
              rt.jar...
              jsse.jar...
              charsets.jar...
              localedata.jar...


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      # javac -version
      javac 1.8.0_282

      ACTUAL -
      # javac -version
      -bash: /usr/bin/javac: No such file or directory



      FREQUENCY : always


            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: