Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613868 - dev-util/android-studio-2.2.3.0.145.3537739: picks system-wide vm rather than user vm
Summary: dev-util/android-studio-2.2.3.0.145.3537739: picks system-wide vm rather than...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-26 04:22 UTC by Ameretat.Reith
Modified: 2018-07-20 05:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ameretat.Reith 2017-03-26 04:22:00 UTC
My system wide jre implementation is 1.6.0_37 provided by icedtea-bin:6 but for a specific user It's Oracle's 1.8.0_66. After android-studio update, when that user runs android-studio, It gets an "Unsupported Java" error telling It needs Java 1.8.

Is this a bug?

Reproducible: Always

Steps to Reproduce:
1.set system java vm to to something other than Oracle 1.8
2.set user java vm to Oracles 1.8
3.install dev-util/android-studio
4.start android-studio
Actual Results:  
It throws an error, telling It wants java 1.8

Expected Results:  
software run with java 1.8
Comment 1 Jason Zaman gentoo-dev 2017-10-29 09:45:56 UTC
Can you try deleting /opt/android-studio/jre and testing if everythign works for you?

the studio.sh startup script has:
# ---------------------------------------------------------------------
# Locate a JDK installation directory which will be used to run the IDE.
# Try (in order): STUDIO_JDK, studio.jdk, ../jre, JDK_HOME, JAVA_HOME, "java" in PATH.
# ---------------------------------------------------------------------

So i think it should all work. if it does then i'll make the ebuilds not have it at all.
Comment 2 Ameretat.Reith 2017-11-09 15:02:31 UTC
(In reply to Jason Zaman from comment #1)
> Can you try deleting /opt/android-studio/jre and testing if everythign works
> for you?
> 
> the studio.sh startup script has:
> # ---------------------------------------------------------------------
> # Locate a JDK installation directory which will be used to run the IDE.
> # Try (in order): STUDIO_JDK, studio.jdk, ../jre, JDK_HOME, JAVA_HOME,
> "java" in PATH.
> # ---------------------------------------------------------------------
> 
> So i think it should all work. if it does then i'll make the ebuilds not
> have it at all.

It did work. thanks.
Comment 3 Larry the Git Cow gentoo-dev 2018-06-24 08:25:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4df9c26f0de7d3d83f275b11aaef4564a947fa5f

commit 4df9c26f0de7d3d83f275b11aaef4564a947fa5f
Author:     Jason Zaman <perfinion@gentoo.org>
AuthorDate: 2018-06-24 08:25:21 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2018-06-24 08:25:32 +0000

    dev-util/android-studio: bump to 3.1.3.0
    
    Closes: https://bugs.gentoo.org/658616
    Closes: https://bugs.gentoo.org/613868
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-util/android-studio/Manifest                   |   1 +
 .../android-studio-3.1.3.0.173.4819257.ebuild      | 108 +++++++++++++++++++++
 2 files changed, 109 insertions(+)