Re: Why can't I select the Sun Java VM ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Linuxguy123 wrote:
> 
> # alternatives --config java
> ...
> How do I get the Sun java to be the default Java, without doing a 24
> step build that Googling finds ?
> ...
> 

Here is the command I came up with to add Sun's Java 1.5.0_16 as an
alternative on Oracle Enterprise Linux 5.0 (a Red Hat derivative, which I
guess makes it a cousin of Fedora 8^), based on the alternatives man page
and some Googling:

# alternatives \
  --install /usr/bin/java            java       
/usr/java/jdk1.5.0_16/bin/java 1500 \
  --slave   /usr/lib/jvm/jre         jre         /usr/java/jdk1.5.0_16/jre/
\
  --slave   /usr/lib/jvm-exports/jre jre_exports
/usr/java/jdk1.5.0_16/jre/lib/ \
  --slave   /usr/bin/rmiregistry     rmiregistry
/usr/java/jdk1.5.0_16/jre/bin/rmiregistry

Make appropriate adjustments for your particular version of Java. Then if
you rerun

# alternatives --config java 

it should provide you with the alternative you want. Select it and you
should be all set.

-- 
View this message in context: http://n2.nabble.com/Why-can%27t-I-select-the-Sun-Java-VM---tp1595656p1605569.html
Sent from the fedora mailing list archive at Nabble.com.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux