On Saturday 19 February 2005 1:57 pm, Ivan Yosifov wrote:
> There is a perfectly good java 1.5 ebuild for Gentoo. It is masked
> because of some "features" of 1.5. Java 1.5 uses the latest language
> features by default ( read: code containing enum as an identifier will
> not compile on 1.5 ). If you try to emerge openoffice or eclipse on 1.5
> they won't build. This does not mean you can't use Java 1.5 by any
> means. You can have an 1.4.2 jdk and 1.5 parallely installed and switch
> between them with 'java-config'. So you will have to switch to 1.4.2
> before emerge-ing any 'problematic' java packages ( there are a lot of
> them ) , and then switch back to 1.5 for daily use. Most people find
> this switching rather frustrating - hence Java 1.5 is hard masked. If
> the switching does not bother you - unmask it and use it.

Or better yet, install both java 1.4.x and java 1.5. Then, use java-config to 
set the system JVM to the 1.4.2 version (-S flag) and set the default JVM for 
your user account to 1.5.x (-s flag - you will need to source the stuff in 
~/.gentoo/ from your .bashrc file).    You get all the java 1.5 goodies, but 
by default portage will use 1.4 for emerging programs.

Josh

--
gentoo-user@gentoo.org mailing list

Reply via email to