From: andrasi-istvan <andrasi-istvan@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: jetbrains-jdk-bin: add profile script to set 'IDEA_JDK'
Date: Thu, 19 Mar 2020 10:57:44 +0100 [thread overview]
Message-ID: <20200319095744.LZ59RlytVjuBgoNdpx1nn-i-nYaAm1CH2LSOzo0BM_s@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20175@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]
New comment by andrasi-istvan on void-packages repository
https://github.com/void-linux/void-packages/pull/20175#issuecomment-601089446
Comment:
Hi!
Thanks for pointing that out. This package however is a JDK, not an IDE, so let me explain the whole situation.
In order to run a JetBrains IDE, I need a JDK. I for example installed both `openjdk8` and `openjdk11`. The JDK packages install profile scripts:
~~~
> cat /etc/profile.d/10_openjdk11.sh
export JAVA_HOME=${JAVA_HOME=/usr/lib/jvm/openjdk11}
> cat /etc/profile.d/10_openjdk8.sh
export JAVA_HOME=${JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk}
~~~
Note that `10_openjdk8.sh` will override `10_openjdk11`, and IDEA picks up `JAVA_HOME`:
~~~
> cat ./bin/idea.sh
[...]
# Locate a JDK installation directory command -v will be used to run the IDE.
# Try (in order): IDEA_JDK, idea.jdk, ./jbr, ./jre64, JDK_HOME, JAVA_HOME, "java" in PATH.
[...]
~~~
As this package is also a JDK, I followed the same pattern, but instead of `JAVA_HOME` I choose `IDEA_JDK`, because I think most people who install this package, expect the JetBrains JDK to be picked up by their IDE, but not expect other java tools to use it.
next prev parent reply other threads:[~2020-03-19 9:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20175@inbox.vuxu.org>
2020-03-18 12:26 ` xtraeme
2020-03-18 17:21 ` Chocimier
2020-03-19 9:56 ` andrasi-istvan
2020-03-19 9:57 ` andrasi-istvan
2020-03-19 9:57 ` andrasi-istvan [this message]
2020-03-19 10:09 ` andrasi-istvan
2020-03-19 10:10 ` andrasi-istvan
2020-03-19 18:05 ` Chocimier
2020-03-19 20:06 ` 2asoft
2020-03-19 20:54 ` [PR PATCH] [Merged]: " Chocimier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200319095744.LZ59RlytVjuBgoNdpx1nn-i-nYaAm1CH2LSOzo0BM_s@z \
--to=andrasi-istvan@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).