[jbosstools-issues] [JBoss JIRA] (JBDS-4454) Path to JDK needs to be updated after every update of JDK

Nick Boldt (JIRA) issues at jboss.org
Mon Jul 24 19:28:00 EDT 2017


    [ https://issues.jboss.org/browse/JBDS-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439546#comment-13439546 ] 

Nick Boldt commented on JBDS-4454:
----------------------------------

Installing devstudio via console (no GUI) doesn't have this bug.

{code}
echo 1 | java -jar devstudio-11.0.0.AM2-v20170713-2124-B489-installer-standalone.jar -console
mv ~/devstudio ~/devstudio-11.0.0.AM2-v20170713-2124-B489-installer-standalone{code}

In fact, no -vm flag is added to devstudio.ini when I install that way:

{code:title=~/devstudio-11.0.0.AM2-v20170713-2124-B489-installer-standalone/studio/devstudio.ini}
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133
-product
com.jboss.devstudio.core.product
-showsplash
platform\:/base/plugins/com.jboss.devstudio.core
--launcher.defaultAction
openFile
-vmargs
-Xms512m
-Xmx1024m
-Dosgi.instance.area.default=@user.home/workspace{code}

But based on your screenshot, the default value pushed to your devstudio.ini was the value preloaded into the  *Specific Java VM* field. So... that might be the value of *$\{JAVA_HOME}* on your system. 

Can you confirm?

Here are my java alternatives:

{code}
$➔ alternatives --list | egrep "jdk|jre|java" | sort
java	auto	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-8.b14.fc24.x86_64/jre/bin/java
javac	auto	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-8.b14.fc24.x86_64/bin/javac
java_sdk_1.8.0	auto	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-8.b14.fc24.x86_64
java_sdk_1.8.0_openjdk	auto	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-8.b14.fc24.x86_64
java_sdk_openjdk	auto	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-8.b14.fc24.x86_64
jaxp_parser_impl	auto	/usr/share/java/xerces-j2.jar
jaxp_transform_impl	auto	/usr/share/java/xalan-j2.jar
jre_1.8.0	auto	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-8.b14.fc24.x86_64/jre
jre_1.8.0_openjdk	auto	/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.121-8.b14.fc24.x86_64
jre_openjdk	auto	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-8.b14.fc24.x86_64/jre
{code}

And my *JAVA_HOME* is */opt/jdk1.8.0/*

But when I run the installer I get this value in the Specific Java VM field:

{code}/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.121-8.b14.fc24.x86_64{code}

And the resulting devstudio.ini has:

{code}
-vm
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-8.b14.fc24.x86_64/bin/java{code}

So, yes, this is a bug, and we should fix that. 

> Path to JDK needs to be updated after every update of JDK
> ---------------------------------------------------------
>
>                 Key: JBDS-4454
>                 URL: https://issues.jboss.org/browse/JBDS-4454
>             Project: Red Hat JBoss Developer Studio (devstudio)
>          Issue Type: Enhancement
>          Components: build, installer
>    Affects Versions: 11.0.0.AM1
>         Environment: Fedora 26
>            Reporter: Josef Kopriva
>            Assignee: Nick Boldt
>             Fix For: 11.0.0.GA
>
>         Attachments: image-2017-06-30-11-01-40-783.png, screenshot-1.png
>
>
> After every update of JDK, path to JDK in file devstudio.ini needs to be updated. This does not happening in Eclipse.
>  !image-2017-06-30-11-01-40-783.png|thumbnail! 



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list