Installing sun jdk,jre

If i download and install java-1_6_0-sun-1.6.0.u15-1.1.2.i586.rpm
from Index of /distribution/11.2/repo/non-oss/suse/i586 , will it install jdk and jre ?

Add Package Repositories - openSUSE and then install.

Is jre here: Index of /repositories/Java:/packages/openSUSE_11.2/i586

It should be installed by default
Look in Software Management and search for it with the search function

is it really installing sun jdk?


linux-w0sv:~/Desktop # zypper install java-1_6_0-sun-devel
Retrieving repository 'openSUSE:Factory:Contrib' metadata [done]
Building repository 'openSUSE:Factory:Contrib' cache [done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW packages are going to be installed:
  java-1_6_0-sun java-1_6_0-sun-devel 


Overall download size: 37.8 M. After the operation, additional 140.9 M will be used.
Continue? [YES/no]:


I’m not sure what you are trying to achieve ??

i want sun jdk 1.6.17 on my system.zypper giving the 1.6.0 one.

You might download it(jre-6u17-linux-i586-rpm.bin) from JAVA website, then run it in Linux Terminal. It will going to install.

Use Yast - Software Management

how??1.6.17 is not available in repos.

AND

if i install it by my own.how to set the alternatives.i used it in el5,but not familiar with it in open SUSE 11.1.

It’s still not clear what you want.
Sun and JDK are different

java-1_6_0-sun

and

java-1_6_0-openjdk

so which is it?

i want jdk-6u17-linux-x64-rpm.bin equivalent /same package.

zypper in -y -l java-1_6_0-sun java-1_6_0-sun-devel && update-alternatives --set java `rpm --eval %_libdir`/jvm/jre-1.6.0-sun/bin/java

That’s a single line, execute as root.


linux-w0sv:~/Desktop # zypper in -y -l java-1_6_0-sun java-1_6_0-sun-devel && update-alternatives --set java `rpm --eval %_libdir`/jvm/jre-1.6.0-sun/bin/java  
Retrieving repository 'openSUSE:Factory:Contrib' metadata [done]
Building repository 'openSUSE:Factory:Contrib' cache [done]
Retrieving repository 'packman' metadata [done]
Building repository 'packman' cache [done]
Retrieving repository 'openSUSE-11.1-Update' metadata [done]
Building repository 'openSUSE-11.1-Update' cache [done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW packages are going to be installed:
  java-1_6_0-sun java-1_6_0-sun-devel 


Overall download size: 37.8 M. After the operation, additional 140.9 M will be used.
Continue? [YES/no]: yes
Automatically agreeing with java-1_6_0-sun package license.
Automatically agreeing with java-1_6_0-sun-devel package license.
Retrieving package java-1_6_0-sun-1.6.0.u17-1.1.1.x86_64 (1/2), 23.7 M (86.5 M unpacked)
Retrieving: java-1_6_0-sun-1.6.0.u17-1.1.1.x86_64.rpm [done (54.7 K/s)]
Installing: java-1_6_0-sun-1.6.0.u17-1.1.1 [done]
Retrieving package java-1_6_0-sun-devel-1.6.0.u17-1.1.1.x86_64 (2/2), 14.1 M (54.4 M unpacked)
Retrieving: java-1_6_0-sun-devel-1.6.0.u17-1.1.1.x86_64.rpm [done (66.2 K/s)]
Installing: java-1_6_0-sun-devel-1.6.0.u17-1.1.1 [done]
Using '/usr/lib64/jvm/jre-1.6.0-sun/bin/java' to provide 'java'.
linux-w0sv:~/Desktop # 



linux-w0sv:~/Desktop # java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
linux-w0sv:~/Desktop # javac -version
javac 1.6.0_17
linux-w0sv:~/Desktop # 



it worked.thanx buddy…

regards

“Buddy”! That’s for Guys
@Chrysantine is not a Guy:X

So,it worked.thanx copine…