Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd July 2009, 06:39 PM
fav0nius Offline
Registered User
 
Join Date: Mar 2009
Location: Wonder Land
Posts: 17
Lightbulb Problem in installing Sun Java on F-11_86

Hi,

I have a freshly installed fedora 11 system. Most of the issues resolved and it is working fine. Now I wanted to install Sun jdk for my project work. I have downloaded the latest release ( jdk-6u14-linux-i586-rpm.bin ) from the http://java.sun.com and tried installing it.....
Everything starts neatly then boom.... it stops and crib about some
Code:
__db.000
file in
Code:
/var/lib/rpm/
The complete stack trace is as follows.....

Code:
Do you agree to the above license terms? [yes or no]
   yes
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
  inflating: jdk-6u14-linux-i586.rpm  
  inflating: sun-javadb-common-10.4.2-1.1.i386.rpm  
  inflating: sun-javadb-core-10.4.2-1.1.i386.rpm  
  inflating: sun-javadb-client-10.4.2-1.1.i386.rpm  
  inflating: sun-javadb-demo-10.4.2-1.1.i386.rpm  
  inflating: sun-javadb-docs-10.4.2-1.1.i386.rpm  
  inflating: sun-javadb-javadoc-10.4.2-1.1.i386.rpm  
error: can't create transaction lock on /var/lib/rpm/__db.000 (No such file or directory)
Installing JavaDB
error: can't create transaction lock on /var/lib/rpm/__db.000 (No such file or directory)
 
Done.
Does anyone have any solution??
I am kind of stuck and can not proceed with my work.....

P.S.: Open jdk is good but due to some project constraint I can not use it....
Reply With Quote
  #2  
Old 2nd July 2009, 06:49 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,847
I havent tried ver 14 but i had no problems with 13 heres how i installed it
http://dnmouse.org/java.html
Reply With Quote
  #3  
Old 2nd July 2009, 07:10 PM
fav0nius Offline
Registered User
 
Join Date: Mar 2009
Location: Wonder Land
Posts: 17
Quote:
Originally Posted by Dangermouse View Post
I havent tried ver 14 but i had no problems with 13 heres how i installed it
http://dnmouse.org/java.html
Hello Dangermouse,

Thanks for such a prompt reply...
I have tried the procedure mentioned on the site.... but I am still getting the same problem....
Reply With Quote
  #4  
Old 2nd July 2009, 07:43 PM
fav0nius Offline
Registered User
 
Join Date: Mar 2009
Location: Wonder Land
Posts: 17
Talking

Okk finally i am able to install sun's jdk but using the jdk-6u14-linux-i586.bin. ..... after struggling for 2 hrs I surrendered and deleted the jdk-6u14-linux-i586-rpm.bin ...

Ok these are the steps I have followed....

Code:
Get the latest package from http://java.sun.com... the one without the 'rpm' ...
Fire the following command to make it executable
Code:
chmod a+x jdk-6u14-linux-i586.bin
Now run the installer
Code:
./jdk-6u14-linux-i586.bin
There will be a long license ... after agreeing with it.... it will unpack all the things in your current working dir....

Now after this it is up to you where you place it....
I have copied mine in /usr/local/java/

for that...fire the following commands one by one
Code:
su
Code:
mkdir /usr/local/java
Code:
mv jdk1.6.0_14 /usr/local/java
after moving it to your desired position.. i logged out from root user...and updated my ~/.bash_profile using this command

Code:
gedit ~/.bash_profile
put the following line into the .bash_profile

Code:
export JAVA_HOME=/usr/local/java/jdk1.6.0_14
export PATH=$PATH:$JAVA_HOME/bin
and do not forget to keep these lines before the following line....

Code:
PATH=$PATH:$HOME/bin
export PATH
otherwise the default i.e. openjdk will be picked every time....

done this far i faced the same problem as mentioned on http://dnmouse.org/java.html .... solution is also mentioned there.... remove the openjdk browser plugin.....

now the last part is installing sun's jre plugin for firefox....

just fire this command one by one....

Code:
cd ~/.mozilla/plugins
and then

Code:
ln -s /usr/local/java/jdk1.6.0_14/jre/plugin/i386/ns7/libjavaplugin_oji.so ./libjavaplugin_oji.so
after this last step i am able to use sun jdk as default for my profile .... And it is working fine

Last edited by fav0nius; 3rd July 2009 at 05:30 AM. Reason: corrected the plugins path for mozilla
Reply With Quote
  #5  
Old 2nd July 2009, 07:46 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,847
I have found another thread where somehad the same error message as you, that might help you
http://forums.fedoraforum.org/showthread.php?t=211145
Reply With Quote
  #6  
Old 20th December 2009, 03:41 AM
sravani Offline
Registered User
 
Join Date: Dec 2009
Posts: 1
linuxfedorafirefox
Even I was getting the same error while using the rpm.bin file of jdk.
Identified that the problem is because i was not logged in a user.
Login a root and execute the bin file, it should be successful.
Reply With Quote
Reply

Tags
f11_86, java, sun

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing java red devil Using Fedora 1 7th August 2005 02:04 PM
Problem installing Java doyler78 Using Fedora 1 18th May 2005 08:21 AM
Problem Installing Java IDE oshman Using Fedora 2 8th May 2005 08:57 PM
Problem installing java sdk steveman2000 Using Fedora 1 29th November 2004 07:58 PM


Current GMT-time: 00:28 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat