LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to install java 2 sdk? (https://www.linuxquestions.org/questions/linux-software-2/how-to-install-java-2-sdk-158615/)

pdmackenzie 03-16-2004 05:15 PM

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

Tinkster 03-16-2004 05:46 PM

post output for that file from

ls -l
and
file

please?



Cheers,
Tink

pdmackenzie 03-16-2004 05:59 PM

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

Komakino 03-16-2004 06:18 PM

As root:
Code:

chmod +x j2eesdk-1_4-dr-linux-eval

./j2eesdk-1_4-dr-linux-eval


pdmackenzie 03-16-2004 06:33 PM

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

Komakino 03-16-2004 07:02 PM

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.

pdmackenzie 03-16-2004 08:29 PM

On the contrary, I found your explanation quite uselful!

thanks all,
doug

cisono 04-07-2004 07:01 AM

I still cannot install java on Linux Mandrake
 
Hi Komakino,

Quote:

Originally posted by Komakino
As root:
Code:

chmod +x j2eesdk-1_4-dr-linux-eval

./j2eesdk-1_4-dr-linux-eval


I have done this, but I get this error:

[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.

Poprocks 04-07-2004 07:21 AM

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.

cisono 04-07-2004 08:39 AM

Quote:

Originally posted by Poprocks
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.
Hi, thanks for your reply.

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.