LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2014, 08:24 AM   #16
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74

try to see if javac is working, it's seems these error doesn't affect it
 
Old 01-24-2014, 08:24 AM   #17
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
Really make me feel sick ...Such an easy work can not be accomplished , I am a little afraid to use RPM packet
 
Old 01-24-2014, 08:28 AM   #18
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
Unhappy

Code:
[root@AY1312280620257702e0Z java]# cd /usr/bin/
[root@AY1312280620257702e0Z bin]# ls |grep java
java
javac
javadoc
javaws
[root@AY1312280620257702e0Z bin]# rm -rf java
[root@AY1312280620257702e0Z bin]# rm -rf javac
[root@AY1312280620257702e0Z bin]# rm -rf javaws 
[root@AY1312280620257702e0Z bin]# 
[root@AY1312280620257702e0Z bin]# ls |grep java
javadoc
[root@AY1312280620257702e0Z bin]# rm -rf javadoc 
[root@AY1312280620257702e0Z bin]# ls |grep java
[root@AY1312280620257702e0Z bin]# 

[root@AY1312280620257702e0Z software]# rpm -i --force jdk-7u25-linux-x64.rpm 
Unpacking JAR files...
	rt.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/rt.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/rt.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	jsse.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/jsse.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/jsse.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	charsets.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/charsets.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/charsets.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	tools.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/lib/tools.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/lib/tools.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	localedata.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/ext/localedata.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/ext/localedata.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
[root@AY1312280620257702e0Z software]#
 
Old 01-24-2014, 08:32 AM   #19
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
ls -lR /usr/java, it seems strange you can't write in it
 
Old 01-24-2014, 08:43 AM   #20
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
I plan to download a tar packet to install, hope everything goes well
 
Old 01-24-2014, 08:47 AM   #21
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
java tarballs are quite easy to install, but you have to set all environment variables, like

export JAVA_HOME=/usr/lib/java <-- change it where you put java
export MANPATH="${MANPATH}:${JAVA_HOME}/man"
export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"

or similar; i'm not into rpm since RH5, i really don't know if it fails to extract files because they yet exists or because he can't find path
 
Old 01-24-2014, 09:07 AM   #22
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
Talking

gengisdave:

Really a great help from you , appreciate it! with your kindly help, I work it our through tar packet. Thank you.

I think we can be friends, call me once you come to China



Code:
[root@AY1312280620257702e0Z jdk1.7.0_25]# vi /etc/profile
[root@AY1312280620257702e0Z jdk1.7.0_25]# 
[root@AY1312280620257702e0Z jdk1.7.0_25]# 
[root@AY1312280620257702e0Z jdk1.7.0_25]# source /etc/profile
[root@AY1312280620257702e0Z jdk1.7.0_25]# 
[root@AY1312280620257702e0Z jdk1.7.0_25]# 
[root@AY1312280620257702e0Z jdk1.7.0_25]# java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
 
Old 01-24-2014, 09:11 AM   #23
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
glad to be helping, i even thought you were running out of disk space, it's still a mystery to me why rpm refused to unpack files; btw, why are you using old java?
 
Old 01-24-2014, 09:24 AM   #24
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
Wink

I have tried one time previouly to install JDK serveral months ago, but still fail. I am a little scared to use JDK RPM packet.
I am trying to install a cluster to setup hadoop, which is the reason why I want to install JDK. The JDK version is recommended by this link http://www.cloudera.com/content/clou...v_topic_3.html which is provided by cloudera company.

Last edited by Robert Chiu; 01-24-2014 at 09:26 AM.
 
Old 01-24-2014, 09:29 AM   #25
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
I do not think I run out of the space, the following:

Code:
[root@AY1312280620257702e0Z jdk1.7.0_25]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda1             20G  2.6G   17G  14% /
tmpfs                 498M   76K  498M   1% /dev/shm
/dev/sr0              362K  362K     0 100% /media/setip
[root@AY1312280620257702e0Z jdk1.7.0_25]#
 
Old 01-24-2014, 09:32 AM   #26
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
gengisdave:

Could you mind if I ask where are you ? which conntry and city do you live ?
 
Old 01-24-2014, 09:33 AM   #27
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
java rpm are identical to tarballs, it copy and set env variables for you, even slackware packages do this, there is no compile or linking, the difference between jre and jdk is that jdk ships the java compiler, while jre don't, just runtime libraries; there are other jdk available, but they're more tricky, i won't recommend as a starting point
 
Old 01-24-2014, 09:35 AM   #28
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
i'm from turin, italy; if you are looking for a development interface, i would point you to netbeans or eclipse
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Did anybody encounter this problem? andgate Programming 5 12-10-2009 12:31 PM
Install umtsmon but encounter switiching problems vitalstrike82 Slackware 0 04-10-2009 09:28 PM
Encounter problem in configuring ENCFS vitalstrike82 Slackware 2 01-04-2009 11:40 AM
Install rpm package encounter segmentation fault eagleskycloud Linux - Software 1 12-13-2007 06:49 AM
Encounter a big problem while using phaser of Expat SybaseLu Linux - Software 2 05-31-2006 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration