Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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.
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.
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) ...
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? :)
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)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.