LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-08-2008, 10:07 AM   #16
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79

Basically, the package manager is your best friend when you are connected to the internet. If you are not, you are going to have to deal with the dependancy hell yourself. That's not good! I advise you don't use the package manager at all for installing java if you are not connected to the internet.
Sun provides java installation files for linux (they have the '.bin' extension). Install those instead of the deb file, for they should have most dependancies included. Check Sun's website. If your ISP is banned from SUN, you can always use some anonymizer, they are easy to find on google.
Of course, if you are connected to the internet, then USE the package manager, it makes your life a lot easier. In this case, you have to enable the 'multiverse' repository in order to install Sun's java, because this software is plagged with license problems. It is still a lot easier this way if you can.

Check your /etc/apt/sources.list file for those lines (add multiverse if necessary):
deb http://archive.ubuntu.com/ubuntu/ hardy universe multiverse
deb http://security.ubuntu.com/ubuntu hardy-security universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates universe multiverse


Hope this helps...

Last edited by Agrouf; 10-08-2008 at 10:13 AM.
 
Old 10-09-2008, 05:44 AM   #17
Ye Myint
LQ Newbie
 
Registered: Sep 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Question IDE for developing personal applics

Hi and thanks for all yr advice. as submitted in my previous reply the error for installing sun-java5-jre is missing libjava.so and java2 runtime env. i surf around with google with my windows box and found an advice to install openjdk via add/remove. i open add/remove on my Ubuntu box and show toggle box to all open source applications. there's one error which says fetch http://security.ubunt.com/ubuntu/dis...ce/Sources.bz2. Hash sum mismatch. Some index files failed to download , they have been ignored or old ones used instead. I find for openjdk and click to install and get errors as follows:
setting up openjdk-6-jre-headless (6b11-2ubuntu2) ...
/usr/lib/jvm/java-6-openjdk/bin/java : error while loading shared libraries:
libjli.so : can not open share object file : No such file or directory:
I'm quite confused what the .so file means. I also down load for ia32-sun-java5-bin i get sun-java5_1.5.0-15.orig.tar.gz and i dont know how to untar it.
Pls help me patiently for my lack of knowledge.Regards.
 
Old 10-09-2008, 06:29 AM   #18
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
On the terminal, type:
tar -xjvf sun-java5_1.5.0-15.orig.tar.gz
This will uncompress the file.
.so files are libraries used by other programs.
 
Old 10-10-2008, 02:48 AM   #19
Ye Myint
LQ Newbie
 
Registered: Sep 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Question IDE for developing personal applics

Hi, thank you very much for yr guidance. Now i try very hard first to install openjdk-6-jre via add/remove menu, i got the replies of errors as:
/usr/lib/jvm/java-6-openjdk/bin/java : error while loading shared libraries : libjli.so : can not open share object file : No such file or directory.
i also try installing sun-java5-jre by sudo apt-get install sun-java4-jre from terminal and the replies are
Error : could not find libjava.so
could not find java2 runtime environment.
i'm now trying and surfing inet for these two .so to no avail yet.
Would kindly guide me what to do? Is it Linux installing error and else?
Thanks and Regards.
 
Old 10-10-2008, 03:00 AM   #20
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Please try to install from the command line and post the error here.
 
Old 10-15-2008, 01:54 AM   #21
Ye Myint
LQ Newbie
 
Registered: Sep 2008
Posts: 24

Original Poster
Rep: Reputation: 15
IDE for developing personal applics.

Hi. Sorry i've been away to upper part of our country to attend to some company duties and i cannot promptly reply to yr posts.Since my office computer which has internet access is a windows box, i boot it from Ubuntu8.04LTS Live CD and try to install java6-jre.It gives much errors such as writeout fails. no space on disk etc. I think because i'm running on Live CD. So i transfer the deb files from /var/cache... to my usb and try installing again on my Ubuntu box which has no internet connection.I got dependency errors for debhelper which depends on dpkg-dev(missing).Another dependency is sun-java6.jre depending on sun-java6-bin|ia32-sun-java6-bin.After completion of installation with errors, i type java -version from terminal and got the replies as
java version "1.6.0_0"
OpenJDK runtime environment (build 1.6.0_0-b11)
OpenJDK Client VM (build 1.6.0_0-b11,mixed mode, sharing)
So i try next to install eclipse. I had 2 pkgs one for Java and another for C/C++ (all are tar pkgs).I untar Java pkg and got a dir with all the unpacked files one of which is eclipse executable. When i double clicked this file i got eclipse with Java. I have already tested the fundamental HelloWorld program and i ran Ok. I have not untar the C/C++ pkg of eclipse and i like to know when both can be unpacked into the single folder or else.
This morning in my office i had downloaded sun-java6-07.orig.tar.gz file and on testing with Ubuntu Live CD, i can untar it to 2 bin files, one is amd64 and another is i586. After my work i may copied it into my ubuntu box and test install again.
Like to know also whether this bin file is Ok and whether eclipse needs OpenJDK only or with jre also.
Thanking so much for all yr help and understanding.
 
Old 11-13-2008, 09:49 PM   #22
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
Could you bring your home computer to work for a day?
Connect to the internet. Use synaptic manager to install all that you need and resolve dependencies?
 
  


Reply

Tags
anjuta, cc++, eclipse, ide, netbeans, studio, visual


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Developing cross platform applications Principher Programming 7 08-27-2006 01:35 PM
Best java ide for gui applications xiang83 Programming 3 01-27-2005 01:59 PM
RH9 &9.0 Benq CDRW 4012a IDE + IDE CDROM - Install - how to cgtueno Linux - Hardware 6 05-30-2004 02:43 PM
good applications for developing webpages drvinoy Linux - Software 3 02-17-2004 06:03 PM
The best IDE for developing cross-platform CAD software cjp Programming 1 12-04-2003 08:08 AM


All times are GMT -5. The time now is 04:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration