[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
Wed Jul 26 15:42:00 EDT 2017


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

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

I can't figure out how to prevent adding the -vm flag into the devstudio.ini even if Default is selected. But I did add some logic to check for /etc/alternatives [1] and use that instead so at least the installation is more portable when updating jdk versions.

{code:title=devstudio.ini}
-vm
/etc/alternatives/java_sdk/bin/java
...{code}

[1] https://github.com/jbdevstudio/jbdevstudio-product/pull/468

[~dgolovin] do you know how to suppress adding the -vm flag when the value added is the default, or when the Default radio button is selected? 

> 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, jdk_selected_alternatives.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