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

Re: java again really

Karl Larsen wrote:
Peter Boy wrote:
Am Samstag, den 05.01.2008, 06:18 -0700 schrieb Karl Larsen:
OK. I am confused. You say there is now ready to yum a jpackage for F8 that has the infrastructer for using the d/l Sun java. This is what I decided was needed. So please if you can give us the way to yum this file(s).

    I hope it is not the same files F8 comes with :-)

check weather jpackage-util is installed on your machine an then visit

Or just download the appropriate
java-1.x.x-sun-compat-1.x.x.y-zjpp.i[nnn}.rpm, which corresponds to the
Sun Java version you are using. and install it

e.g. http://www.jpackage.org/browser/rpm.php?jppversion=5.0&id=489


   Well I looked for jpackage-util and got this:

[root k5di ~]# yum install jpackage-util
Setting up Install Process
Parsing package install arguments
No package jpackage-util available.
Nothing to do
[root k5di ~]#

Then went to the web page and it has a special file for getting to the jpackage.repo which I balk at because new repo's are not good as a rule. Since I did set up my java in a manual way I'm not sure I want to mess up what works :-)


After reading this I am certain my manual way to install is much simpler :-)

       Installing the Sun JDK using the '-compat' method

This step is only necessary if you want to avoid rebuilding the nosrc JDK RPM. Please note that rebuilding the nosrc RPM is the preferred method of obtaining a JPackage JDK.


     Get the Sun JDK 5.0 from:


     by choosing the "JDK 5.0 Update N" "Download" button, and then
     choosing "RPM in self-extracting file" for Linux on the page that
     displays after pressing the button.

     /Important:/ Do NOT install the "Linux x64" version of the SDK.

     If you prefer the older Java 1.4.2 SDK, get it from:


     by choosing the "Download J2SE SDK" link and from there the "RPM
     in self-extracting file" for Linux.


     Install java-1.4.2-sun-compat or java-1.5.0-sun-compat

     Download and install the appropriate -compat RPM from JPackage at:


     Make sure to match the version of the -compat package to the SDK
     you've installed in the first step. The -compat RPM requires that
     the RPM self-extracting file from Sun be used in the previous
     step, not the plain (non-RPM) one.

     For instance, for a Sun SDK 1.5.0_08 you should get:


     and for a Sun SDK 1.4.2_12 you should use:



     Selecting alternatives for java and javac.

     The alternatives system allows different versions of Java from
     different sources to co-exist on your system. You should make sure
     the one you want is selected so that SysV service scripts use that
     one. This is also needed if you want the installed SDK to be the
     default java and javac on the system. Note that this choice can
     often be overridden by setting the JAVA_HOME environment variable.

     If you are rebuilding packages that require Java 5 to build but
     generate code that is capable of running in JDK 1.4 as well, you
     probably should also set java_sdk_1.4.2 to the Java 1.4 JDK you
     have installed, from the same provider of your Java 5 one.

     As root, issue the following command:

            	/usr/sbin/alternatives --config java
     and make sure the Sun one is selected (marked with a '+'), or
     select it by entering its number as prompted.

     Make sure you do the same for javac (and java_sdk_1.4.2" if
     needed). We recommend that all alternatives point to the same

     Get the package you're looking for

Use a dependency manager (apt4rpm, up2date, urpmi, yum, etc.) to get the package you want plus all its dependencies. You can also download/install individual RPMs using Repoview or our own repository browser. For instructions just follow the links under "Download" in the navigation pane.




	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
  PGP 4208 4D6E 595F 22B9 FF1C  ECB6 4A3C 2C54 FE23 53A7

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