Jump to content

Photo

Funtoo Java

- - - - - java

Best Answer digifuzzy , 13 January 2015 - 07:01 PM

Oleg,
I very much appreciate your answer, but I'm confused as I think my question is not being addressed.

To install icedtea -> emerge icedtea-bin then emerge icedtea. Got it.

However, virtual/jdk will, by default, install oracle-jdk-bin. And from you suggestions above - this can't be changed as it is the default. So virtual/jdk is tied to the oracle-jdk-bin.

So choices for java are...
1) install virtaul/jdk to get the default oracle-jdk
2) manually install icedtea-bin then icedtea.

I hope you can see the confusion I'm having here about the purpose of the virtual ebuild if choices are limited. Go to the full post »


10 replies to this topic

#1
digifuzzy

digifuzzy

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts
  • LocationCanada
The Java SE page talks about emerging java using the virtual/jdk ebuild.
 

You can install the free icedtea jdk or Oracle's version. Therefore we have a virtual package called virtual/jdk. By default it will install the Oracle version.


So how does one specify icedtea by default instead?

#2
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 376 posts

Any preferences for icedtea and why?


www.funtoo.org

#3
digifuzzy

digifuzzy

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts
  • LocationCanada
A choice more than anything else.
I haven't had problems using icedtea before.

Also, it would seem incomplete to say in the wiki page "you can have these options" but not say how to enable those options.

#4
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 376 posts

you can have iceadtea. emerge icedtea-bin icedtea. 


www.funtoo.org

#5
digifuzzy

digifuzzy

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts
  • LocationCanada
A little confused. Maybe I'm misunderstanding how virtual ebuilds work.

The web page suggest to emerge virtual/jdk which will pulling in oracle's jdk.
So with a virtual ebuild, if a user wants to install icedtea, they would have to expressly install their jdk of choice afterwards?
A user would have two jdk's installed?

Yes?/No?

#6
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 376 posts

to install iceadtea, user need to install icedte-bin, then icedtea. Funtoo defaults to oracle Java flavor. And it should cover most cases.


www.funtoo.org

#7
digifuzzy

digifuzzy

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts
  • LocationCanada
✓  Best Answer
Oleg,
I very much appreciate your answer, but I'm confused as I think my question is not being addressed.

To install icedtea -> emerge icedtea-bin then emerge icedtea. Got it.

However, virtual/jdk will, by default, install oracle-jdk-bin. And from you suggestions above - this can't be changed as it is the default. So virtual/jdk is tied to the oracle-jdk-bin.

So choices for java are...
1) install virtaul/jdk to get the default oracle-jdk
2) manually install icedtea-bin then icedtea.

I hope you can see the confusion I'm having here about the purpose of the virtual ebuild if choices are limited.

#8
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 376 posts

it's fine to have limited choices. Too much freedom (or so called choices) often leads to anarchy. icedtea case. To make it bootstrap there're 2 choices. Rebuild gcc qith gcj support or emerge icedtea-bin. Funtoo dropped support fro gcj in gcc ebuilds. Also gcj support sheduled fro removal in upstream gcc. So we got only one way is: emerge icedtea-bin first. virtual/jdk ebuild has icedtea-bin candidate alternative. obviously this virtual can't have iceadtea, because you need icedtea-bin built first.


www.funtoo.org

#9
dougbmorris

dougbmorris

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

I'm guessing what you want is the 'eselect' command. Try 'eselect' with no args and look at output, then try 'eselect java-vm' and look at output, then try 'eselect java-vm list' and look at output. If you are lucky, the number you want will be there for 'eselect java-rm set <#>'. I was using icedtea not so long ago and the BDFL counseled me to use oracle and then everything was fine. Yah, I like the opensource stuff culturally. Now if I only knew why my jre 1.8 is masked (equery l -p jre), not that I've put in the time yet to figure it out, but it did bring me to this thread.



#10
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 376 posts

https://bugs.funtoo.org/browse/FL-1884 is the answer


www.funtoo.org

#11
dougbmorris

dougbmorris

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Thanks for link Oleg. I was getting close to posting a question about why I have oracle-jdk-bin 1.8 masked. I wasn't sure I did not do it to myself. :)





Reply to this topic



  



Also tagged with one or more of these keywords: java

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users