LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Java 2 SDK 1.4.2 Installation (https://www.linuxquestions.org/questions/linux-software-2/java-2-sdk-1-4-2-installation-134808/)

smacarth 01-14-2004 02:16 PM

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?

:newbie:

Tinkster 01-14-2004 02:28 PM

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

smacarth 01-14-2004 02:38 PM

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.

Tinkster 01-14-2004 02:53 PM

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

doralsoral 01-14-2004 03:03 PM

use www.blackdown.org java. version 1.4.2 is buggy so get 1.4.1

smacarth 01-14-2004 03:08 PM

My professor said I should be using SDK instead of JDK... I'm not quite sure what this means, but is that a problem?

doralsoral 01-14-2004 04:01 PM

yeah blackdown is jdk but ive never been able to get suns java to work.

Tinkster 01-14-2004 05:10 PM

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


smacarth 01-15-2004 01:19 PM

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

Tinkster 01-15-2004 01:50 PM

Good luck! :)

Cheers,
Tink

smacarth 01-15-2004 03:15 PM

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

doralsoral 01-15-2004 04:04 PM

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

smacarth 01-15-2004 04:11 PM

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)?

doralsoral 01-15-2004 04:30 PM

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

smacarth 01-15-2004 04:33 PM

I'm using redhat 7.3


All times are GMT -5. The time now is 09:04 PM.