Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
javaws always use icedtea
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
samuelbernardo
n00b
n00b


Joined: 30 Jan 2016
Posts: 15

PostPosted: Wed Dec 13, 2017 4:54 pm    Post subject: javaws always use icedtea Reply with quote

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:

Code:

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.
Back to top
View user's profile Send private message
samuelbernardo
n00b
n00b


Joined: 30 Jan 2016
Posts: 15

PostPosted: Sun Dec 17, 2017 12:53 pm    Post subject: Solved Reply with quote

Special thanks to chewi gentoo dev for the clarification:

Quote:

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
Back to top
View user's profile Send private message
samuelbernardo
n00b
n00b


Joined: 30 Jan 2016
Posts: 15

PostPosted: Sun Dec 17, 2017 1:12 pm    Post subject: Re: Solved Reply with quote

samuelbernardo wrote:
Special thanks to chewi gentoo dev for the clarification:

Quote:

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


For icedtea-3.6.0 disable use flag -webstart instead of -bin
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 871
Location: Edinburgh, Scotland

PostPosted: Sun Dec 17, 2017 1:17 pm    Post subject: Reply with quote

I didn't mean a flag called "bin", I was referring to the binary package called icedtea-bin. :) The webstart flag has always had that name.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum