While using Fedora, I always used java straight from Sun. What is recommended for CentOS?? Getting jetty, java and other java apps working correctly has been a real chore. If I used nothing but RPMs for CEntOS, would I have a real working java install? I need some help on this one badly. Ric
Ric Moore wrote:
While using Fedora, I always used java straight from Sun. What is recommended for CentOS?? Getting jetty, java and other java apps working correctly has been a real chore. If I used nothing but RPMs for CEntOS, would I have a real working java install? I need some help on this one badly. Ric
Get it from Sun for now. I think Java 7 is the one that's supposed to be fully GPL, Java 6 still has some incompatible bits that Sun is re-writing(last I read).
You can get java alternatives like gcj with CentOS, though their usefulness is somewhat limited.
nate
(and to answer your other email you sent me off-list while I'm here, no not the same nate, I've never worked at Red Hat)
On Thu, 2008-09-11 at 09:16 -0700, nate wrote:
Ric Moore wrote:
While using Fedora, I always used java straight from Sun. What is recommended for CentOS?? Getting jetty, java and other java apps working correctly has been a real chore. If I used nothing but RPMs for CEntOS, would I have a real working java install? I need some help on this one badly. Ric
Get it from Sun for now. I think Java 7 is the one that's supposed to be fully GPL, Java 6 still has some incompatible bits that Sun is re-writing(last I read).
You can get java alternatives like gcj with CentOS, though their usefulness is somewhat limited.
Whew. Getting jetty and java all classpath straight and working together has been a pain. Everything I've read and googled says I done the proper steps, so it's something I'm not getting right on my end, and to ask the list to figure it out would be too huge a chore to ask of anyone. I'll figure it out. The usual fix is just to start over, with the docs at hand. <grins> Persistence counts in Linux! Do you recommend I uninstall all rpm's for java/jetty at the same time?? I know some things are going to squeak about it.
Ric
Ric Moore wrote:
Whew. Getting jetty and java all classpath straight and working together has been a pain. Everything I've read and googled says I done the proper steps, so it's something I'm not getting right on my end, and to ask the list to figure it out would be too huge a chore to ask of anyone. I'll figure it out. The usual fix is just to start over, with the docs at hand. <grins> Persistence counts in Linux! Do you recommend I uninstall all rpm's for java/jetty at the same time?? I know some things are going to squeak about it.
Depends on your requirements, but for my systems, I make sure all of the distribution specific rpms around java are removed(I use cfengine, so package state is checked hourly and they are removed automatically), install the jdk/jre that you want to use from Sun, and then what I do is update the PATH to include /usr/java/<jdk rev>/bin and set the JAVA_HOME in /etc/bashrc
##### BEGIN Java Home Config CFEngine dc1-hpsim001 Rev 3 export JRE_HOME="/usr/java/jdk1.5.0_11/jre" export JAVA_HOME="/usr/java/jdk1.5.0_11" export PATH="$JAVA_HOME/bin:$PATH" ##### END Java Home Config CFEngine dc1-hpsim001 Rev 3
That too is controlled by cfengine in the event of upgrades etc. The Sun Java RPM package is also installed for me by cfengine as well, so I don't have to do much to enable java on a system, in most cases it automatically installs itself if the host name falls into certain naming schemes defined by regular expressions.
nate
On Sep 11, 2008, at 12:01 PM, Ric Moore wrote:
While using Fedora, I always used java straight from Sun. What is recommended for CentOS?? Getting jetty, java and other java apps working correctly has been a real chore. If I used nothing but RPMs for CEntOS, would I have a real working java install? I need some help on this one badly. Ric
http://jpackage.org/ makes your life easier.
-steve
-- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
On Thu, 2008-09-11 at 12:38 -0400, Steve Huff wrote:
On Sep 11, 2008, at 12:01 PM, Ric Moore wrote:
While using Fedora, I always used java straight from Sun. What is recommended for CentOS?? Getting jetty, java and other java apps working correctly has been a real chore. If I used nothing but RPMs for CEntOS, would I have a real working java install? I need some help on this one badly. Ric
http://jpackage.org/ makes your life easier.
Which of the jpackage sites do you use for yum? I'm definitely looking into cfengine, as mentioned by Nate. I prefer "easy" over "bare-knucks" any day. I just rpm -e'd everything on this system with java in it. starting over from scratch. :) Ric
On Sep 11, 2008, at 2:40 PM, Ric Moore wrote:
http://jpackage.org/ makes your life easier.
Which of the jpackage sites do you use for yum? I'm definitely looking into cfengine, as mentioned by Nate. I prefer "easy" over "bare- knucks" any day. I just rpm -e'd everything on this system with java in it. starting over from scratch. :) Ric
i'm not quite sure what you're asking here, unfortunately. i configure yum for jpackage by putting http://jpackage.org/jpackage17.repo into /etc/yum.repos.d and setting enabled=1 for the jpackage-rhel and jpackage-generic-nonfree repositories. as for which specific mirror to use... you could use the yum-fastestmirror plugin, or if you want to hardcode it, do some testing and pick the mirror (http://jpackage.org/mirroring.php#mirrors ) that works best for you.
there's only one North American mirror, but it is excellent in every way :)
follow this procedure (http://jpackage.org/installation.php) to get started (NB: once you have rebuilt your desired nosrc RPM, you don't have to keep rebuilding it on all your machines, just install it)
-steve
-- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
On Thu, 2008-09-11 at 15:15 -0400, Steve Huff wrote:
On Sep 11, 2008, at 2:40 PM, Ric Moore wrote:
http://jpackage.org/ makes your life easier.
Which of the jpackage sites do you use for yum? I'm definitely looking into cfengine, as mentioned by Nate.
i'm not quite sure what you're asking here, unfortunately. i configure yum for jpackage by putting http://jpackage.org/jpackage17.repo into /etc/yum.repos.d and setting enabled=1 for the jpackage-rhel and jpackage-generic-nonfree repositories. as for which specific mirror to use... you could use the yum-fastestmirror plugin, or if you want to hardcode it, do some testing and pick the mirror (http://jpackage.org/mirroring.php#mirrors ) that works best for you.
I'm sorry, I was in "Deer in the headlights mode". I should have said repos specifically. I have had these enabled: * epel: mirror.its.uidaho.edu * adobe-linux-i386: linuxdownload.adobe.com * jpackage-fc: planetmirror.com * jpackage-generic-nonfree: planetmirror.com * jpackage-rhel: planetmirror.com * rpmforge: fr2.rpmfind.net * jpackage-generic: planetmirror.com * base: mirror.its.uidaho.edu * updates: centos.mirrors.tds.net * centosplus: mirror.centos.org * addons: mirror.centos.org * jetty6localrepo: * extras: mirror.centos.org
With Fedora, we had some problems between differing repos. So, I'd enable one and set another to 0, as I knew my way around. Which are verboten to mix within CentOS? Any on that list that need to be scratched out?? Thanks for your assistance. Ric
On Sep 11, 2008, at 3:37 PM, Ric Moore wrote:
I'm sorry, I was in "Deer in the headlights mode". I should have said repos specifically. I have had these enabled:
- epel: mirror.its.uidaho.edu
- adobe-linux-i386: linuxdownload.adobe.com
- jpackage-fc: planetmirror.com
- jpackage-generic-nonfree: planetmirror.com
- jpackage-rhel: planetmirror.com
- rpmforge: fr2.rpmfind.net
- jpackage-generic: planetmirror.com
- base: mirror.its.uidaho.edu
- updates: centos.mirrors.tds.net
- centosplus: mirror.centos.org
- addons: mirror.centos.org
- jetty6localrepo:
- extras: mirror.centos.org
that's a lot of repos :)
for starters: given that this is a CentOS box, disable jpackage-fc. you do not want that.
in addition, you should read this wiki page:
http://wiki.centos.org/AdditionalResources/Repositories
and the linked instructions about using the priorities plugin. with that many third-party repositories, you run the risk of getting into dependency conflicts.
-steve
p.s. wrt your other question about installing cfengine:
[shuff@orannis ~]$ yum -q --disablerepo=* --enablerepo=rpmforge list cfengine Available Packages cfengine.i386 2.2.3-1.el5.rf rpmforge
that's probably your best start.
-- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
On Thu, 2008-09-11 at 16:37 -0400, Steve Huff wrote:
On Sep 11, 2008, at 3:37 PM, Ric Moore wrote:
I'm sorry, I was in "Deer in the headlights mode". I should have said repos specifically. I have had these enabled:
- epel: mirror.its.uidaho.edu
- adobe-linux-i386: linuxdownload.adobe.com
- jpackage-fc: planetmirror.com
- jpackage-generic-nonfree: planetmirror.com
- jpackage-rhel: planetmirror.com
- rpmforge: fr2.rpmfind.net
- jpackage-generic: planetmirror.com
- base: mirror.its.uidaho.edu
- updates: centos.mirrors.tds.net
- centosplus: mirror.centos.org
- addons: mirror.centos.org
- jetty6localrepo:
- extras: mirror.centos.org
that's a lot of repos :)
for starters: given that this is a CentOS box, disable jpackage-fc. you do not want that.
in addition, you should read this wiki page:
http://wiki.centos.org/AdditionalResources/Repositories
and the linked instructions about using the priorities plugin. with that many third-party repositories, you run the risk of getting into dependency conflicts.
-steve
That was my concern, too. Thank you. I hoped I wasn't heading for possible trouble but found these repos that claimed to be either CentOS or RH friendly. I figured I better put them to you all for a look-see. Ric
On Thu, 2008-09-11 at 12:38 -0400, Steve Huff wrote:
On Sep 11, 2008, at 12:01 PM, Ric Moore wrote:
While using Fedora, I always used java straight from Sun. What is recommended for CentOS?? Getting jetty, java and other java apps working correctly has been a real chore. If I used nothing but RPMs for CEntOS, would I have a real working java install? I need some help on this one badly. Ric
http://jpackage.org/ makes your life easier.
Having a heckuva time finding a usable mirror at that site via yum. I finally just did it the old fashioned way and grabbed it off of Sun. Now I get the Dancing Dan and everything is peachy. I'll be thankful and make a wave offering of a nicely smoked beef brisket, since BBQ (not quite a burnt offering, but close!) is pleasing to the nostrils of the Lord. One does not live in Texas for any length of time without learning how to properly smoke beef brisket until it's as tender as fillet. <grins> Ric
Ric Moore wrote:
While using Fedora, I always used java straight from Sun. What is recommended for CentOS?? Getting jetty, java and other java apps working correctly has been a real chore. If I used nothing but RPMs for CEntOS, would I have a real working java install? I need some help on this one badly. Ric
For your sanity's sake, I'd recommend just dropping the Sun binary(ies) under /usr/java/java-version-number and use explicit paths and JAVA_HOME and CLASSPATH settings when starting the programs. Otherwise you'll have trouble if you need more than one jvm version. The Sun RPM package doesn't set up the expected symlinks that the alternatives system uses and the Centos repos don't have a copy that works either. There are some other RPM-packaged versions around but they may or may not do the right thing with alternatives and even if they do, that scheme can only work with one jvm version at a time.
On Thu, 2008-09-11 at 13:32 -0500, Les Mikesell wrote:
Ric Moore wrote:
While using Fedora, I always used java straight from Sun. What is recommended for CentOS?? Getting jetty, java and other java apps working correctly has been a real chore. If I used nothing but RPMs for CEntOS, would I have a real working java install? I need some help on this one badly. Ric
For your sanity's sake,
Thank you, my sanity is at stake here!
I'd recommend just dropping the Sun binary(ies) under /usr/java/java-version-number and use explicit paths and JAVA_HOME and CLASSPATH settings when starting the programs. Otherwise you'll have trouble if you need more than one jvm version. The Sun RPM package doesn't set up the expected symlinks that the alternatives system uses and the Centos repos don't have a copy that works either. There are some other RPM-packaged versions around but they may or may not do the right thing with alternatives and even if they do, that scheme can only work with one jvm version at a time.
I'm used to beating on alternatives now... it's a wonder it can't be easier though. Well, not really, every distro out there has some unique formula for where things are put and that is what kills the spread of Linux for Joe LunchBucket as well as Admins. Hopefully, --one day--, there will be a 'Grand Unified Theory' for Linux. "I have a dream!" Ric
p/s Thanks to everyone for their responses. I'm not a complete newbie, but this java thing has a lot of trees in the forest. I just want it to work correctly and not have an update blow it up (or my meddling, either!)
On Thu, Sep 11, 2008 at 11:46 AM, Ric Moore wayward4now@gmail.com wrote:
I'm used to beating on alternatives now... it's a wonder it can't be easier though. Well, not really, every distro out there has some unique formula for where things are put and that is what kills the spread of Linux for Joe LunchBucket as well as Admins. Hopefully, --one day--, there will be a 'Grand Unified Theory' for Linux. "I have a dream!" Ric
You want Linux to have a GUT? I've been trying to get rid of mine for years!
;^)
mhr
On Thu, 2008-09-11 at 12:13 -0700, MHR wrote:
On Thu, Sep 11, 2008 at 11:46 AM, Ric Moore wayward4now@gmail.com wrote:
I'm used to beating on alternatives now... it's a wonder it can't be easier though. Well, not really, every distro out there has some unique formula for where things are put and that is what kills the spread of Linux for Joe LunchBucket as well as Admins. Hopefully, --one day--, there will be a 'Grand Unified Theory' for Linux. "I have a dream!" Ric
You want Linux to have a GUT? I've been trying to get rid of mine for years!
I finally lost mine, diabeties is a sure weight loss cure. But the problem I mentioned about stuff all being in the same place has risen it's ugly head trying to use cfengine. I'll start a new thread. Ric
On Thu, 2008-09-11 at 12:13 -0700, MHR wrote:
On Thu, Sep 11, 2008 at 11:46 AM, Ric Moore wayward4now@gmail.com wrote:
I'm used to beating on alternatives now... it's a wonder it can't be easier though. Well, not really, every distro out there has some unique formula for where things are put and that is what kills the spread of Linux for Joe LunchBucket as well as Admins. Hopefully, --one day--, there will be a 'Grand Unified Theory' for Linux. "I have a dream!" Ric
You want Linux to have a GUT? I've been trying to get rid of mine for years!
Exercise and lay off the GRUB (Grand Unified Bootloader)! >:))
;^)
mhr
<snip sig stuff>
I know that's no help,
On Thu, 2008-09-11 at 17:14 -0400, William L. Maltby wrote:
On Thu, 2008-09-11 at 12:13 -0700, MHR wrote:
On Thu, Sep 11, 2008 at 11:46 AM, Ric Moore wayward4now@gmail.com wrote:
I'm used to beating on alternatives now... it's a wonder it can't be easier though. Well, not really, every distro out there has some unique formula for where things are put and that is what kills the spread of Linux for Joe LunchBucket as well as Admins. Hopefully, --one day--, there will be a 'Grand Unified Theory' for Linux. "I have a dream!" Ric
You want Linux to have a GUT? I've been trying to get rid of mine for years!
Exercise and lay off the GRUB (Grand Unified Bootloader)! >:))
Cron flakes are pure starch. :) Ric
On Thu, Sep 11, 2008 at 2:14 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
Exercise and lay off the GRUB (Grand Unified Bootloader)! >:))
<snip>
I know that's no help,
Not at all - I like the GRUB (pun intended...). I'm on the see-food diet, too, so NHT.
mhr
On Thu, 2008-09-11 at 16:37 -0700, MHR wrote:
On Thu, Sep 11, 2008 at 2:14 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
Exercise and lay off the GRUB (Grand Unified Bootloader)! >:))
<snip>
I know that's no help,
Not at all - I like the GRUB (pun intended...). I'm on the see-food diet, too, so NHT.
That would be the c++food diet. :) Ric
Ric Moore wrote:
I'm used to beating on alternatives now... it's a wonder it can't be easier though. Well, not really, every distro out there has some unique formula for where things are put and that is what kills the spread of Linux for Joe LunchBucket as well as Admins. Hopefully, --one day--, there will be a 'Grand Unified Theory' for Linux. "I have a dream!" Ric
The problem is that locations are _supposed_ to be arbitrary and permit the co-existence of multiple versions, and even though every developer almost certainly has his own paths to private versions of things, the first thing they do to simplify setup is to pretend that no one else will need that - or at least not with anything packaged.
p/s Thanks to everyone for their responses. I'm not a complete newbie, but this java thing has a lot of trees in the forest. I just want it to work correctly and not have an update blow it up (or my meddling, either!)
There's not a real good way to handle things where you can't include versioning in the package/paths and permit multiples unless you just embed the dependent jvm in the RPM package of each app. Don't laugh - the openfire (xmpp server) RPM does exactly that...