LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2004, 05:15 PM   #1
pdmackenzie
Member
 
Registered: Dec 2002
Location: toronto
Distribution: mandrake 10
Posts: 135

Rep: Reputation: 15
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
 
Old 03-16-2004, 05:46 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
post output for that file from

ls -l
and
file

please?



Cheers,
Tink
 
Old 03-16-2004, 05:59 PM   #3
pdmackenzie
Member
 
Registered: Dec 2002
Location: toronto
Distribution: mandrake 10
Posts: 135

Original Poster
Rep: Reputation: 15
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
 
Old 03-16-2004, 06:18 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
As root:
Code:
chmod +x j2eesdk-1_4-dr-linux-eval

./j2eesdk-1_4-dr-linux-eval
 
Old 03-16-2004, 06:33 PM   #5
pdmackenzie
Member
 
Registered: Dec 2002
Location: toronto
Distribution: mandrake 10
Posts: 135

Original Poster
Rep: Reputation: 15
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
 
Old 03-16-2004, 07:02 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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.
 
Old 03-16-2004, 08:29 PM   #7
pdmackenzie
Member
 
Registered: Dec 2002
Location: toronto
Distribution: mandrake 10
Posts: 135

Original Poster
Rep: Reputation: 15
On the contrary, I found your explanation quite uselful!

thanks all,
doug
 
Old 04-07-2004, 07:01 AM   #8
cisono
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
Unhappy 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.
 
Old 04-07-2004, 07:21 AM   #9
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
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.
 
Old 04-07-2004, 08:39 AM   #10
cisono
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
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.
 
  


Reply



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
Java SDK & JRE Install Avi Linux - Software 1 10-02-2005 08:32 PM
java SDK install jet_zeng Linux - Software 5 05-10-2005 11:57 AM
Java SDK 1.4.2 install. lifted_one Programming 4 11-06-2003 12:55 AM
Java 1.4.0 SDK install problem insom Linux - Newbie 3 09-05-2003 04:01 AM
Java SDK 1.4 Install KptnKrill Linux - Newbie 6 08-14-2003 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration