Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-3450

installer uses a specific JDK as default when installing JBDS; when user updates to newer rpm, jbdevstudio.ini points to non-existent path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 11.0.0.GA, 11.3.0.GA
    • 9.0.0.Beta1
    • installer
    • None
    • 8
    • Hide

      1. Use /usr/ as java home for OS where default java location is /usr/bin/java or /usr/lib/jvm/jre/.

      2. Manually remove two lines from jbdevstudio.ini

      -vm
      /path/to/java/executive

      after installation

      Show
      1. Use /usr/ as java home for OS where default java location is /usr/bin/java or /usr/lib/jvm/jre/. 2. Manually remove two lines from jbdevstudio.ini -vm /path/to/java/executive after installation
    • NEW

    Description

      (2015-06-02 16:37:24) joshuaw: maxandersen: I just ran into an issue with JBDS if you have a min

      (2015-06-02 16:38:36) joshuaw: I'm running Fedora 22 and it wanted to update, so I let it. I think I had JBDS running when I restarted. When I restarted I couldn't start JBDS.
      (2015-06-02 16:39:02) joshuaw: I got the following error: A Java Runtime Environment (JRE) or Java Development Kit (JDK)
      (2015-06-02 16:39:02) joshuaw: must be available in order to run Jbdevstudio. No Java virtual machine
      (2015-06-02 16:39:02) joshuaw: was found after searching the following locations:
      (2015-06-02 16:39:02) joshuaw: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-38.b14.fc22.x86_64/bin/java

      (2015-06-02 16:39:31) nickboldt: does your ~/jbdevstudio/*.ini file point to a SPECIFIC path for java?
      (2015-06-02 16:39:40) joshuaw: let me check
      16:40
      (2015-06-02 16:40:10) nickboldt: if alternatives replaced the old JDK w/ newer one the problem is prolly that you're looking in a SPECIFIC place for JVM and Eclipse/JBDS can't find it

      (2015-06-02 16:41:37) joshuaw: though the OS update may have moved something
      (2015-06-02 16:42:10) nickboldt: does /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-38.b14.fc22.x86_64/bin/java exist?
      (2015-06-02 16:42:15) joshuaw: nickboldt: yeah, that location is in the .ini file
      (2015-06-02 16:42:28) nickboldt: and it actually exists on your disk after the update?
      (2015-06-02 16:42:29) joshuaw: nickboldt: that location does not exist
      (2015-06-02 16:42:32) nickboldt: aha
      (2015-06-02 16:42:45) nickboldt: cd /usr/lib/jvm/java-1.8.0-openjdk-1.8*
      (2015-06-02 16:42:48) nickboldt: pwd
      (2015-06-02 16:42:52) nickboldt: put that in your ini file

      (2015-06-02 16:45:46) joshuaw: I had /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-38.b14.fc22.x86_64/bin/java in the .ini file
      (2015-06-02 16:45:56) rbenevides is now known as rbenevides|afk
      (2015-06-02 16:46:03) joshuaw: and the system now has 1.8.0.45-39
      (2015-06-02 16:46:19) joshuaw: funny how java -version doesn't list the -39
      (2015-06-02 16:46:33) joshuaw: stupid minor minor version update

      (2015-06-02 17:46:43) maxandersen: joshuaw: any chance if you recall when you installed if you chose to use the default or specific version of a idk ?
      (2015-06-02 17:47:00) maxandersen: joshuaw: if used default it would be a bug if we added specific javavm to the ini file

      (2015-06-02 17:55:19) nickboldt: maxandersen: I never pick a specific one, just use default suggestion
      (2015-06-02 17:55:27) nickboldt: and I have $➔ cat studio/jbdevstudio.ini
      (2015-06-02 17:55:27) nickboldt: -vm
      (2015-06-02 17:55:27) nickboldt: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71-2.5.3.0.fc20.x86_64/jre/bin/java

      (2015-06-02 17:55:36) maxandersen: thats bad
      (2015-06-02 17:55:40) nickboldt: so... maxandersen... BUG.
      (2015-06-02 17:56:19) maxandersen: nickboldt: can you open bug for that one ?

      It's possible the installer is using the CURRENT value of alternatives path for JDK...

      $➔ alternatives --display java
      java - status is manual.
       link currently points to /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71-2.5.3.0.fc20.x86_64/jre/bin/java
      /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71-2.5.3.0.fc20.x86_64/jre/bin/java - priority 170071
      

      So we need to maybe point to a different path... say, in /usr/lib/jvm/jre/ ?

      Attachments

        Issue Links

          Activity

            People

              nivologd@gmail.com Denis Golovin (Inactive)
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: