Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-1252

JAVA_HOME doesn't point to what it should be in the plugin-java8-openj9-rhel8 image

XMLWordPrintable

    • False
    • False
    • Undefined
    • Hide

      Just open the SpringBoot / Thorntail workspace, click on any java files, you will be notified that LS can't be activated.

       

      But you can avoid this by adding the following config to devifile.yaml: 

      • id: redhat/java8/latest
            type: chePlugin
            env:
              - name: JAVA_HOME
                value: /usr/lib/jvm/java-1.8.0-openj9
      Show
      Just open the SpringBoot / Thorntail workspace, click on any java files, you will be notified that LS can't be activated.   But you can avoid this by adding the following config to devifile.yaml:  id: redhat/java8/latest     type: chePlugin     env:       - name: JAVA_HOME         value: /usr/lib/jvm/java-1.8.0-openj9

      After deploying the crw2.4 on OCP,  And make sure the devfiles.yaml(in devfile registry) and meta.yaml(in plugin registry) is pointing to the updated image which is 
      quay.io/crw/plugin-java8-openj9-rhel8@sha256:14f2774e92b70d85280e506f81e2ea9a89c26490fd53a4421df8a694bd944d2d
       

      It seems the image it is pulling in maven and vscode-javav8t container is still the outdated one. 

      And the LS can't be activated because the java-home is not pointing to the 
      /usr/lib/jvm/java-1.8.0-openj9

        1. LS works.png
          890 kB
          Doris Xu
        2. Pulling the right images now.png
          741 kB
          Doris Xu
        3. LS not working as wrong JAVA_HOME.png
          888 kB
          Doris Xu
        4. Outdated image it is pulling.png
          756 kB
          Doris Xu
        5. devfile.yaml in devfileregitsry.png
          792 kB
          Doris Xu
        6. meta.yaml in pluginregistry.png
          868 kB
          Doris Xu

            ruoxuan95 Doris Xu (Inactive)
            ruoxuan95 Doris Xu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: