JDK install on Centos VM

afrugone

Renowned Member
Nov 26, 2008
106
0
81
I've installed Centos 5.2 from OpenVZ Templates it works perfect, but when I' tried to install java JDK I've an error:

error: %post(jdk-1.6.0_11-fcs.i586) scriptlet failed, exit status 5
I used the following method:

chmod a+x jdk-6u11-linux-i586-rpm.bin

./jdk-6u11-linux-i586-rpm.bin

.
.
error: %post(jdk-1.6.0_11-fcs.i586) scriptlet failed, exit status 5
.

java -version looks ok, but I'm not sure if it's really running
# java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)

and
# rpm -qa | grep jdk
jdk-1.6.0_11-fcs

Do you have any idea of what is missing, or how to be sure if everything is OK

Thanks


Configuration
Template:centos-5-standard_5-2 VMID:101
Disk space (GB):20.00 Cluster Node:ve1(172.27.110.127)
Memory (MB):1024 Start at boot: yes
Swap (MB):1024

Notes: CentOS 5 (standard)

save

Status
Status: running
Hostname: Centos_Tomcat1.tgl.cl Uptime: 01:38:25
IP Address: 172.27.110.128


Resource Current Maximum
CPU Utilization: 0 100
0.00%
Memory/Swap (MB): 32 2048
32MB
Disk space (GB): 0.91 20.00
 
I've installed Centos 5.2 from OpenVZ Templates it works perfect, but when I' tried to install java JDK I've an error:

error: %post(jdk-1.6.0_11-fcs.i586) scriptlet failed, exit status 5
I used the following method:

chmod a+x jdk-6u11-linux-i586-rpm.bin

./jdk-6u11-linux-i586-rpm.bin

.
.
error: %post(jdk-1.6.0_11-fcs.i586) scriptlet failed, exit status 5
.

java -version looks ok, but I'm not sure if it's really running
# java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)

and
# rpm -qa | grep jdk
jdk-1.6.0_11-fcs

Do you have any idea of what is missing, or how to be sure if everything is OK

Thanks


Configuration
Template:centos-5-standard_5-2 VMID:101
Disk space (GB):20.00 Cluster Node:ve1(172.27.110.127)
Memory (MB):1024 Start at boot: yes
Swap (MB):1024

Notes: CentOS 5 (standard)

save

Status
Status: running
Hostname: Centos_Tomcat1.tgl.cl Uptime: 01:38:25
IP Address: 172.27.110.128


Resource Current Maximum
CPU Utilization: 0 100
0.00%
Memory/Swap (MB): 32 2048
32MB
Disk space (GB): 0.91 20.00

I am not a java expert, maybe this setup script triggers something which is not compatible with openvz - try posting in the java support forums?
 
Many thanks for your soon answer, I've just installed Centos 5.2 from CD as KVM in the same server, and do the same and JDK was installed with no problem, so someting is wrong with Openvz or Template.

Regards
Alfredo
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!