LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-14-2004, 03:16 PM   #1
smacarth
LQ Newbie
 
Registered: Jan 2004
Posts: 13

Rep: Reputation: 0
Java 2 SDK 1.4.2 Installation


I'm trying to install the Java 2 SDK 1.4.2 rpm file. There was another post with someone having a similar issue but I've managed to get a little farther.

I downloaded the bin file from Sun ( j2sdk-1_4_2-nb-3_5_1-bin-linux.bin) and ran it as follows "./ j2sdk-1_4_2-nb-3_5_1-bin-linux.bin -console" The installShield runs all the way through and then says to continue, choose next. I type 1<enter>, then the installer stops and goes to the prompt. The rpm file is nowhere to be found...

Has anyone seen this before?

 
Old 01-14-2004, 03:28 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, and welcome to LQ.

And you won't find an RPM file since you
didn't download one ... sun uses two different
methods here ... one is a RH rpm, one is a
bin (a self-extracting executable) ... after
having run it you're likely to find a java
directory in the current working directory
where you ran the bin.



Cheers,
Tink
 
Old 01-14-2004, 03:38 PM   #3
smacarth
LQ Newbie
 
Registered: Jan 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Taking your suggestion, I checked that directory where I ran the bin file and there is no new java directory. I also did a "locate java" and it didn't find anything that looked like a new java directory.

Thanks.
 
Old 01-14-2004, 03:53 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
K, I had another look ... it appears you grabbed
NetBeans with JDK ... I've never installed that one
before. Am currently d/ling it from sun (and man,
that's one slow server, an hour and 40 to go) ...

ttyl

Cheers,
Tink
 
Old 01-14-2004, 04:03 PM   #5
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
use www.blackdown.org java. version 1.4.2 is buggy so get 1.4.1
 
Old 01-14-2004, 04:08 PM   #6
smacarth
LQ Newbie
 
Registered: Jan 2004
Posts: 13

Original Poster
Rep: Reputation: 0
My professor said I should be using SDK instead of JDK... I'm not quite sure what this means, but is that a problem?
 
Old 01-14-2004, 05:01 PM   #7
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
yeah blackdown is jdk but ive never been able to get suns java to work.
 
Old 01-14-2004, 06:10 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
K, I just downloaded & tried to install
the netbeans thing. Seems like it's console
switch/version doesn't work ... it installs
fine with the graphical mode, though.

[edit]
This is also the first .bin from sun I saw that
didn't use a shell wrapper but was completely
in ELF binary format - that way one can't fix it :(
[/edit]
Question is: do you really "need" the
net beans? :)


Cheers,
Tink


Last edited by Tinkster; 01-14-2004 at 06:12 PM.
 
Old 01-15-2004, 02:19 PM   #9
smacarth
LQ Newbie
 
Registered: Jan 2004
Posts: 13

Original Poster
Rep: Reputation: 0
No, I don't think I need the net beans. I was just pointed to this file by my prof. I will try it in graphical mode.

Thanks
 
Old 01-15-2004, 02:50 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Good luck! :)

Cheers,
Tink
 
Old 01-15-2004, 04:15 PM   #11
smacarth
LQ Newbie
 
Registered: Jan 2004
Posts: 13

Original Poster
Rep: Reputation: 0
So I'm getting a little closer (I think). I was able to get the sdk installed (I found another file on Sun's site). My problem occurs when I try to compile a java file. I type "javac filename.java" and it says "command not found." I am trying to run this from the directory where I ran the rpm file to install the sdk.

Doing a "locate javac" produces no results.
Trying to re-run the rpm file says it's already installed.
The new file I ran is j2sdk-1_4_2_03-linux-i586.rpm
 
Old 01-15-2004, 05:04 PM   #12
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
im not sure i understand what youre saying but from what i gather youre trying to use the java compiler? if i misunderstood disregaurd this but if you are you have to make sure that the java portion for gcc is installed. use your package manager
 
Old 01-15-2004, 05:11 PM   #13
smacarth
LQ Newbie
 
Registered: Jan 2004
Posts: 13

Original Poster
Rep: Reputation: 0
No, you are right. I am trying to use the compiler... Sorry for this, but I'm a total rookie with linux. How do I access the package manager to install the java portion for gcc (I don't have a gui installed)?
 
Old 01-15-2004, 05:30 PM   #14
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
what distro do you have, search google and this site and im sure you can find the answer to your question. if not i will try and help some more
 
Old 01-15-2004, 05:33 PM   #15
smacarth
LQ Newbie
 
Registered: Jan 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I'm using redhat 7.3
 
  


Reply


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
Java SDK help! nr5 Linux - Software 5 06-10-2005 09:33 AM
Java SDK installation trouble vous Linux - Software 6 03-02-2005 01:56 PM
Java SDK installation - Newbie needs help! jacksmash Linux - Software 2 11-01-2003 02:49 PM
java sdk 1.4 installation steelrose Linux - Newbie 3 03-12-2002 03:53 PM
java 1.4 sdk installation steelrose Linux - Software 1 03-11-2002 08:42 AM


All times are GMT -5. The time now is 03:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration