Re: java in Linux question

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

 



Uno Engborg wrote:
Paul Howarth wrote:
On Mon, 2006-05-08 at 05:09 -0700, Michael A. Peters wrote:
On Mon, 2006-05-08 at 03:53 -0700, M E Fieu wrote:
Hi.. I have installed java in the following folder /usr/java/jre1.5.0_06 in linux, may i know whether i should create JAVA_HOME variable like windows do ?? If I want to add the following
entries
JAVA_HOME=/usr/java/jre1.5.0_06

where should I add ?? /etc/profile ? I added but it doesn't appear in ENV after I relogin
I recommend using the jpackage nosrc.rpm to create Sun java rpms.

http://www.jpackage.org/rpm.php?id=3366
http://www.jpackage.org/rebuilding.php

A detailed Fedora-specific HOWTO for this is available here:

http://www.city-fan.org/tips/JpackageJava

As far as I know that doesn't set the JAVA_HOME environment variable.
Some java programs depend on that to find things like $JAVA_HOME/lib/jre/ext
or security settings to install or run correctly.

Is it possible to somehow get JAVA_HOME set from Jpackage, so that it reflects
the currently chosen java version?

That probably needs a scriptlet in /etc/profile.d that looks at the current alternatives setting for java and sets JAVA_HOME appropriately. Perhaps someone that uses a variety of JREs can suggest something?

Paul.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[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