[CentOS] Struggling with javac

Thu Aug 24 07:18:11 UTC 2006
"Petr \"Qaxi\" Klíma" <qaxi at seznam.cz>

An one more ... ;-)

You need:

 From jpackage.org:
java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm

 From SUN (it is unpacket from original SUN file 
jdk-1_5_0_08-linux-i586-rpm.bin):
jdk-1_5_0_08-linux-i586.rpm

 From CentOS 3 repos (base or updates):
jpackage-utils-1.5.38-1jpp_5rh.noarch.rpm

after installation of you can see (and configure) which JAVA 
implemetation you will use:

# env LANG=C alternatives --config  java

There are 2 programs which provide 'java'.

   Selection    Command
-----------------------------------------------
  + 1           /usr/share/java/libgcj-java-placeholder.sh
*  2           /usr/lib/jvm/jre-1.5.0-sun/bin/java

Enter to keep the current selection[+], or type selection number:


As you see there are GCJ (which makes your problem "gij ..." and just 
installed SUN JDK. Choose what you prefer ... :)



Tarun Reddy wrote:
> One last note...
> 
> The java-1.5.0-sun-compat package requires the jdk rpm from Sun be
> installed. It does not actually contain the jdk!
> 
> You may also want to add jpackage.org's yum config to your local yum.
> You can get more info at jpackage.org
> 


-- 

    Petr Klíma

    e-mail:  qaxi at seznam.cz