Java 7 installation problem


 
Thread Tools Search this Thread
Top Forums Programming Java 7 installation problem
# 1  
Old 08-26-2012
Java 7 installation problem

Hi,

I am trying to install java7.6 on redhat 6.2 but got the below error message. In fact this error comes up for all the supported OS of JDK 7 and JRE 7. I am running this as root and I dont have any other Java version installed.

Code:
[root@XXX] # rpm -i jre-7u6-linux-x64.rpm
Unpacking JAR files...
 rt.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/rt.pack
 jsse.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/jsse.pack
 charsets.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/charsets.pack
 localedata.jar...
Error: Could not open input file: /usr/java/jre1.7.0_06/lib/ext/localedata.pack
[root@XXXX]#

This happens even if I try a forceful installation. But Java is getting installed and could be found from rpm -qa. Appreciate any comments on this issue or is this a bug from Oracle?

Regards,
Vinoth

Moderator's Comments:
Mod Comment Please use code tags next time for your code and data.

Last edited by radoulov; 08-26-2012 at 08:36 AM..
# 2  
Old 08-26-2012
Where did you download the rpm from? Try to download it from the Oracle official site and try again.
# 3  
Old 08-26-2012
yes i have downloaded it from oracle only and still have this issue...
# 4  
Old 08-26-2012
I got the same error. I then tried the JDK for 7u4 then updated alternatives and it worked fine.

I got the error with the JDK for 7u6 as well.

just use 7u4 for now...

Code:
[root@SL-G71 java]# java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) Server VM (build 23.0-b21, mixed mode)

Later,
Jeff
# 5  
Old 09-01-2012
You can always do it the long way. I just installed Java7u7 by following the instructions from liberiangeek dot net. (I do not have 5 posts so I cannot post URLs)

Code:
www.liberiangeek.net/2012/04/install-oracle-java-jdk-7-in-ubuntu-12-04-precise-pangolin/

A bit more involved obviously but you get the latest...

In my case I used "2" in the alternatives install so I could go back to openjdk if needed. I then configured alternatives to use the second listed instance which was "2" for the Orcale JDK1.7.0_u7.

Later,
Jeff
# 6  
Old 09-01-2012
you can install java in source code.it is sample and what you should do is export java in $PAHT.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Java 32 bit installation fails on an AIX platform

Hello. It is my first to deal with Java installation on an AIX platform. I am now trying to install Java 32bit using installp command. However, it throws back the message that the installation media cannot be found. I need to install Java 32bit to proceed with an installation of Oracle JD... (0 Replies)
Discussion started by: EJ2019
0 Replies

2. Shell Programming and Scripting

Invalid Java installation: No version could be obtained

Hi , i am in mid of upgrading one of the java based application which requires higher version of java 1.8 from java 1.6, I have updated bash_profile and required environment variable correctly but still application unable to obtain the required version of java 1.8. here is my environment detail... (2 Replies)
Discussion started by: Riverstone
2 Replies

3. Ubuntu

java error during upgrade or installation of package

Hi, everytime I do "sudo apt-get " and install package or just upgrade I get the following error: sha256sum mismatch jdk-7u3-linux-x64.tar.gz Oracle JDK 7 is NOT installed. dpkg: error processing oracle-java7-installer (--configure): subprocess installed post-installation script returned... (1 Reply)
Discussion started by: programAngel
1 Replies

4. Solaris

Java Installation on s Solaris 8

I have installed java 1.6.0_31 on a solaris 8 machine by mean of the jre-6u31-solaris-sparc.sh file. The installation i think is allright infact if I run the java -version command it shows the right version but if i try to run the command java -jar Monitor.jar c (where monitor.jar is a little... (1 Reply)
Discussion started by: aemme
1 Replies

5. Red Hat

Installation of java on RHEL6

HI all, I am trying to install java on RHEL 6 in a vm. Can any one Help me How to install Java on RHEL6. (1 Reply)
Discussion started by: saisrinivas99
1 Replies

6. Programming

can i have an optimal solution for this java code ? Facing Java heap space problem even at 3GB heaps

My desired output is run: for this 1 for this 2 for this 3 for this 4 for this 5 for this 1,2 1->2 for this 2,3 2->3 for this 3,4 3->4 for this 4,5 4->5 for this 1,2,3 1->2,3 (2 Replies)
Discussion started by: vaibhavkorde
2 Replies

7. Solaris

JAMES (Java Apache Mail Enterprise Server) - Installation/Configuration Problem

Good Afternoon Intelligent Administrators/Debuggers! I am installing JAMES on an internal server (192.168.2.33) Specs of xxx.xxx.xxx.33 = SunOS v210b 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V210 After placing and "gunziping" the respective file, I am trying to run it by: ... (1 Reply)
Discussion started by: kazmiM
1 Replies

8. Solaris

Java Installation

Hi Guys, I am new here, Currently i am having a problem. below is the information to my problem I have Java version 5 installed on my solaris box and currently there is a request to install java version 6 as well on the same box. Can i have 2 java running on the same box? If yes how do i... (1 Reply)
Discussion started by: rinrockers
1 Replies

9. UNIX for Dummies Questions & Answers

java runtime for mozilla firefox 3.5.3 installation

Hi, community, I am using Karmica koala 9.10 and I wish to add to Firefox the JRE plugin. What I have to do? The problem arises when I try to copy from the Downloads dir the file to /usr/java that I created. I must have the root permissions, I think. Please help. (1 Reply)
Discussion started by: mauropera
1 Replies

10. Linux

how do i run java on Mandriva 2006 after installation?

i have install jdk1.6 on my mandriva linux os. i do not know now what is the next steps to compile and run my java code. it seems to be no jre on mandriva. help... (3 Replies)
Discussion started by: dinarcisco
3 Replies
Login or Register to Ask a Question