Re: installation of jdk 1.5 in linux 9.0
On Sat, Jul 07, 2007 at 12:25:31AM +0530, Souvik Chakravarty wrote: > i am absolutely new to linux..so can any one tell me the procedure to > install jdk 1.5 in linuxspecially the path The only 'jdk' I see in aptitude is 'sun-java5-jdk', version 1.5.0-10-3. Use your package manager (I use aptitude interactivly) and select this package. Apt will take care of installing any dependancies. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: installation of jdk 1.5 in linux 9.0
On Sat, Jul 07, 2007 at 12:25:31AM +0530, Souvik Chakravarty wrote: > i am absolutely new to linux..so can any one tell me the procedure to > install jdk 1.5 in linuxspecially the path > You can add the non-free repository to your /etc/apt/sources.list and then run: aptitude update aptitude install sun-java5-jdk All this needs to be done as root. Reply back to this list if you have trouble with these steps, and someone will provide more details. PS: Just an idle question of mine, what's linux 9.0? The current version of debian is 4.0 (etch) and the kernel is 2.6. -- Kushal Kumaran [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: installation of jdk 1.5 in linux 9.0
Souvik Chakravarty([EMAIL PROTECTED]) is reported to have said: > i am absolutely new to linux..so can any one tell me the procedure to > install jdk 1.5 in linuxspecially the path I don't know what version you are using ;-( so do, on whatever version you are running. aptitude or apt-cache search jdk . You pick the one you want to install. Wayne -- Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then. ___ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: installation of jdk 1.5 in linux 9.0
Souvik Chakravarty wrote: i am absolutely new to linux..so can any one tell me the procedure to install jdk 1.5 in linuxspecially the path I typically download it from java.com, and then extract it to /usr/local, and then symlink to any needed executables to /usr/local/bin. I also symlink the plugin to /usr/lib/iceweasel/plugins. Your question is a bit vague, and I suspect my answer is a bit vague also. If this doesn't address your issue, feel free to re-port with additional info/questions. -- Kent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Installation of JDK
> > This is probably a stupid question, but shouldn't libraries be built > > with backwards compatibility in mind? > > The world isn't perfect, and sometimes mistakes were made and need to > be > corrected. When the soname (the bit at the end of the library > filename) > is changed, that indicates that compatibility has been broken for one > reason or another. You may not notice it most of the time, as the > change > may be in a rarely-used part of the library, but if anything ever does > call the thing that changed then it'll most likely crash immediately. Good point, i didn't think of that... > > Or perhaps we could ask Sun to simply build the SDK with forward > > compatibility in mind ? :-) > It's the standard C++ library, not Sun ... I was saying that perhaps Sun could have made the SDK work with future versions of that library. I don't even know if that's possible, i was just throwing out what seemed like a realistic idea at the time. > > I just looked at the libraries in my /usr/lib, and it would appear > > that many of them are linked to other libraries. > > That's different. Those are probably either links from > /usr/lib/libfoo.so to /usr/lib/libfoo.so.1 (which are for use when > compiling other software dependent on those libraries, not when > running > it) or links to micro-versions of the libraries where the library > interface hasn't changed. Oh, ok. When my SDK breaks from linking libraries, i'll follow your advice. (==timothy==)
Re: Installation of JDK
On Fri, Mar 22, 2002 at 02:57:08PM -0500, timothy bauscher wrote: > > > I had the same problem, so i linked > > > libstdc++-libc6.1-1.so.2 -> > > > libstdc++-libc6.2-2.so.3 > > > > While this may happen to work most of the time, it isn't reliable. I > > recommend not doing this when you can find the real library with the > > correct soname anywhere at all. > > This is probably a stupid question, but shouldn't libraries be built > with backwards compatibility in mind? The world isn't perfect, and sometimes mistakes were made and need to be corrected. When the soname (the bit at the end of the library filename) is changed, that indicates that compatibility has been broken for one reason or another. You may not notice it most of the time, as the change may be in a rarely-used part of the library, but if anything ever does call the thing that changed then it'll most likely crash immediately. > Or perhaps we could ask Sun to simply build the SDK with forward > compatibility in mind ? :-) It's the standard C++ library, not Sun ... > I just looked at the libraries in my /usr/lib, and it would appear > that many of them are linked to other libraries. That's different. Those are probably either links from /usr/lib/libfoo.so to /usr/lib/libfoo.so.1 (which are for use when compiling other software dependent on those libraries, not when running it) or links to micro-versions of the libraries where the library interface hasn't changed. -- Colin Watson [EMAIL PROTECTED]
Re: Installation of JDK
> > as root: > > > > cd /usr/lib/ > > ls libstdc++* | grep so > > > > For me this brings up: > > > > libstdc++-3-libc6.1-2-2.10.0.so > > libstdc++-3-libc6.2-2-2.10.0.so > > libstdc++-libc6.1-1.so.2 > > libstdc++-libc6.2-2.so.3 > > libstdc++.so.3 > > libstdc++.so.3.0.2 > > > > I had the same problem, so i linked > > libstdc++-libc6.1-1.so.2 -> > > libstdc++-libc6.2-2.so.3 > > While this may happen to work most of the time, it isn't reliable. I > recommend not doing this when you can find the real library with the > correct soname anywhere at all. This is probably a stupid question, but shouldn't libraries be built with backwards compatibility in mind? Or perhaps we could ask Sun to simply build the SDK with forward compatibility in mind ? :-) Since you are a Debian developer, i follow your instructions the next time around. But, being that i'm lazy, for now i will not try to fix something that isn't broken. I just looked at the libraries in my /usr/lib, and it would appear that many of them are linked to other libraries. Since i didn't link most of these myself, i assume this was done by other software installations. Perhaps i am missing the point??? (==timothy==)
Re: Installation of JDK
On Thu, Mar 21, 2002 at 09:51:22PM -0500, timothy bauscher wrote: > as root: > > cd /usr/lib/ > ls libstdc++* | grep so > > For me this brings up: > > libstdc++-3-libc6.1-2-2.10.0.so > libstdc++-3-libc6.2-2-2.10.0.so > libstdc++-libc6.1-1.so.2 > libstdc++-libc6.2-2.so.3 > libstdc++.so.3 > libstdc++.so.3.0.2 > > I had the same problem, so i linked > libstdc++-libc6.1-1.so.2 -> > libstdc++-libc6.2-2.so.3 While this may happen to work most of the time, it isn't reliable. I recommend not doing this when you can find the real library with the correct soname anywhere at all. -- Colin Watson [EMAIL PROTECTED]
RE: Installation of JDK
This worked great thanks and also a big thanks to you Timothy for your post :-) Awesome, G. -Original Message- From: Angus D Madden [mailto:[EMAIL PROTECTED] Sent: Friday, 22 March 2002 2:20 p.m. To: debian-user@lists.debian.org Subject: Re: Installation of JDK Lawrence, Gareth, Fri, Mar 22, 2002 at 01:25:28PM +1200: > Greetings All, > > having major troubles installing JDK on Debian - any suggestions would be > appreciated. > > The error message I get is > > "Error: failed /usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so, because > libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or > directory" > > I used alien to concert the jdk1.4 file to deb and then used the depackage > function so all should be well - let me know if you need more information. > I also apt-get installed libstdc and libc6 and that didn't help. > $ dpkg -S libstdc++-libc6.1-1.so.2 libstdc++2.9-glibc2.1: /usr/lib/libstdc++-libc6.1-1.so.2 apt-get install libstdc++2.9-glibc2.1 g -- Brought to you by Debian 3.0 Linux took 2.4.16 #1 SMP Sat Jan 5 12:52:24 EST 2002 i686 unknown
Re: Installation of JDK
> The error message I get is > > "Error: failed /usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so, > because > libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file > or > directory" as root: cd /usr/lib/ ls libstdc++* | grep so For me this brings up: libstdc++-3-libc6.1-2-2.10.0.so libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.1-1.so.2 libstdc++-libc6.2-2.so.3 libstdc++.so.3 libstdc++.so.3.0.2 I had the same problem, so i linked libstdc++-libc6.1-1.so.2 -> libstdc++-libc6.2-2.so.3 I use woody. I think that on Potato i had to link to *libc6.1-2.so.2 though. In any case, link them like this: ln -s lib_WHATEVER_looks_closest libstdc++-libc6.1-1.so.2 Hope that helps. I am sure someone else has already replied -- but i haven't seen anything yet because this list is so slow. (==timothy==)
Re: Installation of JDK
On Fri, Mar 22, 2002 at 01:25:28PM +1200, Lawrence, Gareth wrote: > "Error: failed /usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so, because > libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or > directory" See http://packages.debian.org/, under "Search the contents of packages". You need to install the libstdc++2.9-glibc2.1 package. Cheers, -- Colin Watson [EMAIL PROTECTED]
Re: Installation of JDK
Lawrence, Gareth, Fri, Mar 22, 2002 at 01:25:28PM +1200: > Greetings All, > > having major troubles installing JDK on Debian - any suggestions would be > appreciated. > > The error message I get is > > "Error: failed /usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so, because > libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or > directory" > > I used alien to concert the jdk1.4 file to deb and then used the depackage > function so all should be well - let me know if you need more information. > I also apt-get installed libstdc and libc6 and that didn't help. > $ dpkg -S libstdc++-libc6.1-1.so.2 libstdc++2.9-glibc2.1: /usr/lib/libstdc++-libc6.1-1.so.2 apt-get install libstdc++2.9-glibc2.1 g -- Brought to you by Debian 3.0 Linux took 2.4.16 #1 SMP Sat Jan 5 12:52:24 EST 2002 i686 unknown pgpCMsiRGnWVT.pgp Description: PGP signature