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: |
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 |
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. |
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 |
use www.blackdown.org java. version 1.4.2 is buggy so get 1.4.1
|
My professor said I should be using SDK instead of JDK... I'm not quite sure what this means, but is that a problem?
|
yeah blackdown is jdk but ive never been able to get suns java to work.
|
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 |
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 |
Good luck! :)
Cheers, Tink |
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 |
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
|
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)?
|
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
|
I'm using redhat 7.3
|
All times are GMT -5. The time now is 09:04 PM. |