how to install java 2 sdk?
Hello!
I just downloaded the file j2eesdk-1_4-dr-linux-eval from sun.com. The problem is I cannot figure out how to install it! It isn't a .bin file, or a .gz or .tar, and according to Konqueror it is a "executable file". I thought these were windows files. What to do? thanks in advance, doug |
post output for that file from
ls -l and file please? Cheers, Tink |
hello!
ls -l shows --rw------- 1 mac mac 137837347 Jun 10 17:53 j2eesdk-1_4-dr-linux-eval (mac is the non-root user) and running file produces j2eesdk-1_4-dr-linux-eval: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped thanks doug |
As root:
Code:
chmod +x j2eesdk-1_4-dr-linux-eval |
So it was only a question of permissions! Another thing, tho. I have wondered about the './' at the beginning of the second line, ie "./j2eesdk-1_4-dr-linux-eval". WHy is the ./ necessary to get the executable to run?
doug |
It may not be necessary, depending on your system, although it's generally necessary for root.
The ./ indicated the current directory. ( .. is back a directory, . is current directory - if you do ls -a you'll see they come up). When ./ precedes a command (say ./configure) it means to run only the instance of configure in the current directory, the idea being that if someone somehow managed to put a malicious file with the same name as a useful tool, for example a program to wipe the hard disk called 'cd' in a directory and root happened to be in that directory and typed 'cd', you don't want it to run that malicious program, so root would have to explicitly say 'run the cd that is in this directory, not the one in /bin - that's what ./ does). Root rarely has current directory (.) in his path. Bad, jumbled explanation, but hopefully you get the idea. |
On the contrary, I found your explanation quite uselful!
thanks all, doug |
I still cannot install java on Linux Mandrake
Hi Komakino,
Quote:
[code] ./j2eesdk-1_4-dr-linux-eval: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory [/cope] I have been unable to fix this. Any ideas? cisono. |
Check your lib directories (probably /usr/lib in this case) and see if you have a similar file. If so, make a symbolic link from the similar file to the one it's looking for (again, in your /usr/lib directory) and run ldconfig as root. Then try the java executable again.
|
Quote:
I cannot find the file it is looking for anywhere. In /usr/lib, I found only: libstdc++.so.5@ libstdc++.so.5.0.5 What does this mean, exactly? Thanks, cisono. |
All times are GMT -5. The time now is 04:07 PM. |