public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] javaws always use icedtea
@ 2017-12-13 22:25 Samuel Bernardo
  2017-12-13 22:40 ` James Le Cuirot
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Bernardo @ 2017-12-13 22:25 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 831 bytes --]

Hello,

I'm using oracle jdk as default jvm, but when I review java-config
result after setting oracle-jdk-bin as prefered jvm, javaws continues to
start icedtea version.

Analysing the script /usr/libexec/eselect-java/run-java-tool.bash I
realised that itweb-javaws is hardcoded:

> if [ "${tool}" = "javaws" ] && [ -x "/usr/bin/itweb-javaws" ]; then 
>         exec "/usr/bin/itweb-javaws" "${@}" 
> fi 

Shouldn't this also change when java-config defines new predefined jvm?

Thanks for any clarification about this implementation in the mentioned
script.
The ebuild that installs the script is app-eselect/eselect-java and I
would like to change this script to also set javaws when predefining jvm.

I also published this message in the gentoo forum:

https://forums.gentoo.org/viewtopic-t-1073738.html

Best,

Samuel


[-- Attachment #2: Type: text/html, Size: 4364 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] javaws always use icedtea
  2017-12-13 22:25 [gentoo-dev] javaws always use icedtea Samuel Bernardo
@ 2017-12-13 22:40 ` James Le Cuirot
  0 siblings, 0 replies; 2+ messages in thread
From: James Le Cuirot @ 2017-12-13 22:40 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 692 bytes --]

On Wed, 13 Dec 2017 22:25:51 +0000
Samuel Bernardo <samuelbernardo.mail@gmail.com> wrote:

> I'm using oracle jdk as default jvm, but when I review java-config
> result after setting oracle-jdk-bin as prefered jvm, javaws continues to
> start icedtea version.

Disable the webstart flag against icedtea(-bin) and unmerge
dev-java/icedtea-web. Job done. This used to be configurable through
eselect but it was really overcomplicated for no benefit. This is all
documented here and shown when you install icedtea-web the first time.

https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-java/icedtea-web/files/README.gentoo-r1

-- 
James Le Cuirot (chewi)
Gentoo Linux Developer

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-13 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-13 22:25 [gentoo-dev] javaws always use icedtea Samuel Bernardo
2017-12-13 22:40 ` James Le Cuirot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox