Java 7 installation problem | Unix Linux Forums | Programming

  Go Back    


Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Java 7 installation problem

Programming


Tags
java 7 installation problem

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-25-2012
nvk_vinoth nvk_vinoth is offline
Registered User
 
Join Date: Aug 2012
Last Activity: 27 November 2012, 12:18 PM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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:
Please use code tags next time for your code and data.

Last edited by radoulov; 08-26-2012 at 07:36 AM..
Sponsored Links
    #2  
Old 08-26-2012
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
Moderator
 
Join Date: Jan 2007
Last Activity: 20 September 2014, 5:20 AM EDT
Location: Варна, България / Milano, Italia
Posts: 5,674
Thanks: 182
Thanked 620 Times in 578 Posts
Where did you download the rpm from? Try to download it from the Oracle official site and try again.
Sponsored Links
    #3  
Old 08-26-2012
nvk_vinoth nvk_vinoth is offline
Registered User
 
Join Date: Aug 2012
Last Activity: 27 November 2012, 12:18 PM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
yes i have downloaded it from oracle only and still have this issue...
    #4  
Old 08-26-2012
I_ROUTE I_ROUTE is offline
Registered User
 
Join Date: Aug 2012
Last Activity: 30 September 2012, 8:12 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #5  
Old 09-01-2012
I_ROUTE I_ROUTE is offline
Registered User
 
Join Date: Aug 2012
Last Activity: 30 September 2012, 8:12 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #6  
Old 09-01-2012
arnold.king arnold.king is offline
Registered User
 
Join Date: Aug 2011
Last Activity: 16 March 2013, 3:04 AM EDT
Location: changsha
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
you can install java in source code.it is sample and what you should do is export java in $PAHT.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Java Installation on s Solaris 8 aemme Solaris 1 05-14-2012 03:16 AM
Installation of java on RHEL6 saisrinivas99 Red Hat 1 08-25-2011 09:05 PM
can i have an optimal solution for this java code ? Facing Java heap space problem even at 3GB heaps vaibhavkorde Programming 2 04-12-2011 01:51 AM
JAMES (Java Apache Mail Enterprise Server) - Installation/Configuration Problem kazmiM Solaris 1 02-28-2011 05:00 AM
Java Installation rinrockers Solaris 1 08-18-2010 02:51 AM



All times are GMT -4. The time now is 08:05 PM.