I did not choose Java when I installed CentOS 4.4 and I want to install a JDK to do Java programming. What is the default Java JDK for CentOS 4.4 ? I see under YumEx very little which looks like a Java JDK. Is there one in the distribution ? Is there a way to get Sun's latest JDK 5 installed safely and successfully on CentOS 4.4, perhaps via an RPM for it tailored to CentOS 4.4, or should I just use the one on Sun's web site ? After installing the RPM is there anything else I have to do to get it to work properly in CentOS 4.4 ? Any help is gratefully appreciated.
On Wed, Nov 15, 2006 at 05:28:12PM -0500, Edward Diener enlightened us:
I did not choose Java when I installed CentOS 4.4 and I want to install a JDK to do Java programming. What is the default Java JDK for CentOS 4.4 ? I see under YumEx very little which looks like a Java JDK. Is there one in the distribution ? Is there a way to get Sun's latest JDK 5 installed safely and successfully on CentOS 4.4, perhaps via an RPM for it tailored to CentOS 4.4, or should I just use the one on Sun's web site ? After installing the RPM is there anything else I have to do to get it to work properly in CentOS 4.4 ? Any help is gratefully appreciated.
See jpackage.org for a .nosrc.rpm to use with Sun's Java.
Matt
we have been using the 64-bit and 32-bit java 1.4 and 1.5 .bin installers on Centos 4.3, 4.4 with very much success, so if you are looking to get the Java capabilities you might not need to search for an RPM per se.
We keep a very bare machine (no centos java package, etc.) and have a whole step-by-step recipe for getting all the usual java webapps working with very little hassle...
-karl
Matt Hyclak wrote:
On Wed, Nov 15, 2006 at 05:28:12PM -0500, Edward Diener enlightened us:
I did not choose Java when I installed CentOS 4.4 and I want to install a JDK to do Java programming. What is the default Java JDK for CentOS 4.4 ? I see under YumEx very little which looks like a Java JDK. Is there one in the distribution ? Is there a way to get Sun's latest JDK 5 installed safely and successfully on CentOS 4.4, perhaps via an RPM for it tailored to CentOS 4.4, or should I just use the one on Sun's web site ? After installing the RPM is there anything else I have to do to get it to work properly in CentOS 4.4 ? Any help is gratefully appreciated.
See jpackage.org for a .nosrc.rpm to use with Sun's Java.
Matt
Karl R. Balsmeier wrote:
we have been using the 64-bit and 32-bit java 1.4 and 1.5 .bin installers on Centos 4.3, 4.4 with very much success, so if you are looking to get the Java capabilities you might not need to search for an RPM per se.
We keep a very bare machine (no centos java package, etc.) and have a whole step-by-step recipe for getting all the usual java webapps working with very little hassle...
Is there any particular procedure for installing the Java 1,5 on Sun's site to CentOS 4.4 ? I see a Jpackage package called Java-1.5.0-sun-compat but I have no idea what this is or how it is supposed to be used.
Setting up Sun's Java latest 1.5.0 JDK on "that other OS whose name shall not be mentioned" is a no-brainer so it is a bit disappointing that it is more complicated on CentOS 4.4. But maybe it is really as easy as downloading the appropriate file from Sun's site and installing it and I am overestimating any other issues.
On Wed, Nov 15, 2006 at 07:43:04PM -0500, Edward Diener enlightened us:
Karl R. Balsmeier wrote:
we have been using the 64-bit and 32-bit java 1.4 and 1.5 .bin installers on Centos 4.3, 4.4 with very much success, so if you are looking to get the Java capabilities you might not need to search for an RPM per se.
We keep a very bare machine (no centos java package, etc.) and have a whole step-by-step recipe for getting all the usual java webapps working with very little hassle...
Is there any particular procedure for installing the Java 1,5 on Sun's site to CentOS 4.4 ? I see a Jpackage package called Java-1.5.0-sun-compat but I have no idea what this is or how it is supposed to be used.
Setting up Sun's Java latest 1.5.0 JDK on "that other OS whose name shall not be mentioned" is a no-brainer so it is a bit disappointing that it is more complicated on CentOS 4.4. But maybe it is really as easy as downloading the appropriate file from Sun's site and installing it and I am overestimating any other issues.
Using the binary installer will work, however what the jpackage.org stuff does is create all the appropriate links (mostly for /etc/alternatives) so that /usr/bin/java is the right thing.
If you had read the Installation Instructions on the web site (right next to the big red blinking "READ!"), you would see that installing sun-java-compat along side the rpm from Sun's website would get you a working java installation.
Matt
On Thursday 16 November 2006 00:43, Edward Diener wrote:
Is there any particular procedure for installing the Java 1,5 on Sun's site to CentOS 4.4 ? I see a Jpackage package called Java-1.5.0-sun-compat but I have no idea what this is or how it is supposed to be used.
Setting up Sun's Java latest 1.5.0 JDK on "that other OS whose name shall not be mentioned" is a no-brainer so it is a bit disappointing that it is more complicated on CentOS 4.4. But maybe it is really as easy as downloading the appropriate file from Sun's site and installing it and I am overestimating any other issues.
Here is the procedure we use to build a set of Sun Java rpms.
To build a set of RPMs for java from java.sun.com -------------------------------------------------
1. Install rpmdevtools if it's not already installed from extras
# yum --enablerepo=extras install rpmdevtools*
Run buildrpmtree. This installs an rpm build environment ( ~/rpmbuild/* ) under the current user.
# buildrpmtree
3. Install jpackage.repo from JPackage
# cd /etc/yum.repos # wget http://www.jpackage.org/jpackage.repo
4. Download the latest Java SDK from sun.java.com. To build a set of RPMs make sure you get the jdk-xxx-linux-i586.bin file not the jdk-xxx-linux-i586-rpm.bin file
#ftp://ftp.sun.com.........
Copy it to ~/rpmbuild/SOURCES
5. Download the latest java-xxx-sun-xxxjpp.nosrc.rpm from JPackage.org ( check the JPackage location for this package )
6. Build the JDK RPMs
# rpmbuild --rebuild java-1.5.0-sun-1.5.0.09-1jpp.nosrc.rpm
If the build is successful there will be a set of java RPMs in ~/rpmbuild/RPMS/i586
java-1.5.0-sun-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-alsa-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-demo-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-devel-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-fonts-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-jdbc-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-plugin-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-src-1.5.0.09-1jpp.i586.rpm
Regards,
Tony
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thu, 2006-11-16 at 09:54 +0000, Tony Molloy wrote:
On Thursday 16 November 2006 00:43, Edward Diener wrote:
Is there any particular procedure for installing the Java 1,5 on Sun's site to CentOS 4.4 ? I see a Jpackage package called Java-1.5.0-sun-compat but I have no idea what this is or how it is supposed to be used.
Setting up Sun's Java latest 1.5.0 JDK on "that other OS whose name shall not be mentioned" is a no-brainer so it is a bit disappointing that it is more complicated on CentOS 4.4. But maybe it is really as easy as downloading the appropriate file from Sun's site and installing it and I am overestimating any other issues.
Here is the procedure we use to build a set of Sun Java rpms.
To build a set of RPMs for java from java.sun.com
Install rpmdevtools if it's not already installed from extras
# yum --enablerepo=extras install rpmdevtools*
Run buildrpmtree. This installs an rpm build environment ( ~/rpmbuild/* ) under the current user.
# buildrpmtree
There is no rpmdevtools in CentOS extras (nor did I see it in rpmforge or kbs repos) .... so none of the above works that I can tell. However:
1. You can install some things in CentOS to get a build environment ...
yum install rpm-build gcc gcc-c++ redhat-rpm-config
2. You can then create a directory called rpmbuild in your current user's home:
mkdir ~/rpmbuild
3. You can then create (or edit) your .rpmmacros file to use your newly created rpmbuild dir ... using the editor of your choice edit the file ~/.rpmmacros and add/edit this line:
%_topdir ~/rpmbuild
Install jpackage.repo from JPackage
# cd /etc/yum.repos
this should be--^^^^^^^^^
cd /etc/yum.repos.d/
# wget http://www.jpackage.org/jpackage.repo
Download the latest Java SDK from sun.java.com. To build a set of RPMs make sure you get the jdk-xxx-linux-i586.bin file not the jdk-xxx-linux-i586-rpm.bin file
#ftp://ftp.sun.com.........
Copy it to ~/rpmbuild/SOURCES
Download the latest java-xxx-sun-xxxjpp.nosrc.rpm from JPackage.org ( check the JPackage location for this package )
Build the JDK RPMs
# rpmbuild --rebuild java-1.5.0-sun-1.5.0.09-1jpp.nosrc.rpm
If the build is successful there will be a set of java RPMs in ~/rpmbuild/RPMS/i586
java-1.5.0-sun-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-alsa-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-demo-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-devel-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-fonts-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-jdbc-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-plugin-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-src-1.5.0.09-1jpp.i586.rpm
OK ... the above now stands at least a chance of working ... though I did not try it.
On Thursday 16 November 2006 10:29, Johnny Hughes wrote:
On Thu, 2006-11-16 at 09:54 +0000, Tony Molloy wrote:
On Thursday 16 November 2006 00:43, Edward Diener wrote:
Is there any particular procedure for installing the Java 1,5 on Sun's site to CentOS 4.4 ? I see a Jpackage package called Java-1.5.0-sun-compat but I have no idea what this is or how it is supposed to be used.
Setting up Sun's Java latest 1.5.0 JDK on "that other OS whose name shall not be mentioned" is a no-brainer so it is a bit disappointing that it is more complicated on CentOS 4.4. But maybe it is really as easy as downloading the appropriate file from Sun's site and installing it and I am overestimating any other issues.
Here is the procedure we use to build a set of Sun Java rpms.
To build a set of RPMs for java from java.sun.com
Install rpmdevtools if it's not already installed from extras
# yum --enablerepo=extras install rpmdevtools*
Run buildrpmtree. This installs an rpm build environment ( ~/rpmbuild/* ) under the current user.
# buildrpmtree
There is no rpmdevtools in CentOS extras (nor did I see it in rpmforge or kbs repos) .... so none of the above works that I can tell.
Oops!! Sorry, install fedora-rpmdevtools-1.1-1.fc4 from Fedora Core 4 Extras.
Tony
However:
- You can install some things in CentOS to get a build environment
...
yum install rpm-build gcc gcc-c++ redhat-rpm-config
- You can then create a directory called rpmbuild in your current
user's home:
mkdir ~/rpmbuild
- You can then create (or edit) your .rpmmacros file to use your
newly created rpmbuild dir ... using the editor of your choice edit the file ~/.rpmmacros and add/edit this line:
%_topdir ~/rpmbuild
Install jpackage.repo from JPackage
# cd /etc/yum.repos
this should be--^^^^^^^^^
cd /etc/yum.repos.d/
# wget http://www.jpackage.org/jpackage.repo
- Download the latest Java SDK from sun.java.com. To build a set of RPMs make sure you get the
jdk-xxx-linux-i586.bin file not the jdk-xxx-linux-i586-rpm.bin file
#ftp://ftp.sun.com......... Copy it to ~/rpmbuild/SOURCES
- Download the latest java-xxx-sun-xxxjpp.nosrc.rpm from
JPackage.org ( check the JPackage location for this package )
Build the JDK RPMs
# rpmbuild --rebuild java-1.5.0-sun-1.5.0.09-1jpp.nosrc.rpm
If the build is successful there will be a set of java RPMs in ~/rpmbuild/RPMS/i586
java-1.5.0-sun-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-alsa-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-demo-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-devel-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-fonts-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-jdbc-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-plugin-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-src-1.5.0.09-1jpp.i586.rpm
OK ... the above now stands at least a chance of working ... though I did not try it.
I tried it and it works.
Tony
On Thu, 2006-11-16 at 04:42, Tony Molloy wrote:
If the build is successful there will be a set of java RPMs in ~/rpmbuild/RPMS/i586
java-1.5.0-sun-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-alsa-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-demo-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-devel-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-fonts-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-jdbc-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-plugin-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-src-1.5.0.09-1jpp.i586.rpm
OK ... the above now stands at least a chance of working ... though I did not try it.
I tried it and it works.
After doing this and the equivalent for the jta package you should be able to add the jpackage repo and use yum to install jpackage-utils and then things like tomcat4 or 5. I've been doing this to get opennms working on a couple of machines and have always had to explicitly install a couple of other packages to make it work: xml-commons-apis and something else I've forgotten. Does anyone know the right order to add things to make tomcat work the first time?
On 16/11/06, Les Mikesell lesmikesell@gmail.com wrote:
After doing this and the equivalent for the jta package you should be able to add the jpackage repo and use yum to install jpackage-utils and then things like tomcat4 or 5. I've been doing this to get opennms working on a couple of machines and have always had to explicitly install a couple of other packages to make it work: xml-commons-apis and something else I've forgotten. Does anyone know the right order to add things to make tomcat work the first time?
From my scrappy docs the last time I setup Tomcat it's...
Install rpm-build from CentOS repo. Install jpackage-utils from Jpackage repo. Install java-$ver-sun-$jpver.nosrc from Jpackage repo. Build the Java SDK RPM as per JPackage instructions. Install java-$ver-sun-$jpver.i586.rpm and java-$ver-sun-devel-$jpver.i586.rpm built in previous stage. Install jta-$ver.nosrc.rpm from Jpackage repo. Build JTA RPM as per JPackage instructions. Install gnu-crypto-sasl-jdk$ver Jpackage again? Install Tomcat.
I've left the version out because I was building Tomcat 4 and SDK 1.4.
Will.
yeah, it's actually a no brainer, the file you are looking for is simply a .bin file with a really long name (from Sun's web unique download URL) but I always just rename it to java15.bin or java1564.bin and just ./java15.bin and you agree to the license and it does the rest.
I will try to dig up the URL from Sun, i'd post my package but would rather you trust Sun instead of me as i'm sure they'd appreciate.
-krb
Edward Diener wrote:
Karl R. Balsmeier wrote:
we have been using the 64-bit and 32-bit java 1.4 and 1.5 .bin installers on Centos 4.3, 4.4 with very much success, so if you are looking to get the Java capabilities you might not need to search for an RPM per se.
We keep a very bare machine (no centos java package, etc.) and have a whole step-by-step recipe for getting all the usual java webapps working with very little hassle...
Is there any particular procedure for installing the Java 1,5 on Sun's site to CentOS 4.4 ? I see a Jpackage package called Java-1.5.0-sun-compat but I have no idea what this is or how it is supposed to be used.
Setting up Sun's Java latest 1.5.0 JDK on "that other OS whose name shall not be mentioned" is a no-brainer so it is a bit disappointing that it is more complicated on CentOS 4.4. But maybe it is really as easy as downloading the appropriate file from Sun's site and installing it and I am overestimating any other issues.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Matt Hyclak wrote:
On Wed, Nov 15, 2006 at 05:28:12PM -0500, Edward Diener enlightened us:
I did not choose Java when I installed CentOS 4.4 and I want to install a JDK to do Java programming. What is the default Java JDK for CentOS 4.4 ? I see under YumEx very little which looks like a Java JDK. Is there one in the distribution ? Is there a way to get Sun's latest JDK 5 installed safely and successfully on CentOS 4.4, perhaps via an RPM for it tailored to CentOS 4.4, or should I just use the one on Sun's web site ? After installing the RPM is there anything else I have to do to get it to work properly in CentOS 4.4 ? Any help is gratefully appreciated.
See jpackage.org for a .nosrc.rpm to use with Sun's Java.
I see a package called java-1.5.0-sun-compat once I added JPackage to my yum repositories. Is this the Sun JDK 5.0 ( 1.5.0 ) ? If not, what is the reason for this and how is it supposed to work with the latest Sun JDK 5.0 ( 1.5.0 ) ?