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



    • 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


      after installation

      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


      (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-

      (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
      (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- 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- 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
      (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-

      (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-
      /usr/lib/jvm/java-1.7.0-openjdk- - priority 170071

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


        Issue Links



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