LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to install Jdk in linux... Help me :( (https://www.linuxquestions.org/questions/linux-general-1/how-to-install-jdk-in-linux-help-me-6441/)

jolly 09-11-2001 08:24 AM

How to install Jdk in linux... Help me :(
 
I have no idea about installing Jdk in Linux :(

Where can I get Jdk rpm for the Linux?
How do I install rpm of Linux

like this
rpm -i Jdk------.rpm

Is there any specific folder in Linux to install Jdk or I can copy Jdk in any folder and run the rpm
How can I check if its installed successfully.

on root by writing
# javac


Help me please

acid_kewpie 09-11-2001 09:34 AM

you don't install an rpm for java. you downlosd the binary instaler from java.sun.com and run the thing. it will install itself.

dilberim82 09-12-2001 10:41 AM

I think
whereis java
or
which java
will tell you where it is and which version you have... I am not sure if it does though let me know if it works so i can try too

oulevon 09-12-2001 01:41 PM

which java will give you your path to the version of java you're using.

jolly 09-13-2001 12:36 AM

Guys I am new to Linux environment. Could you please tell me 2 things

(1). Which one is better RPM or BINARY & what is the diff between both.
(2). Where should I run the setup of JDK. Is there any specific directory and how can I check if its intalled successfullyl. If possible please let me know the command.

:(

acid_kewpie 09-13-2001 02:23 AM

1) sun like you to install the binary file. there';s very little difference. with rpms you can easily uninstall them, something like java is extremely easy to uninstall anyway. use the binary!!!
i hink it will install into the directory you are in, so run it from /usr/local i'd suggest


2) if you look up a bit, you'll see that two people have already given you numerous ways to check for a successful instalation.

jolly 09-13-2001 02:29 AM

Is it neccessary to run Jdk from /usr/local
Will there be any diff if I run from /tmp folder.
From where can I download the binary of Jdk other than sun website. How do I uninstall binary of jdk ?

acid_kewpie 09-13-2001 02:40 AM

you can uninstall java by deleting the folder it's in

run it from /usr/local, as you'll get /usr/local/jdk, as ossposed to /tmp/jdk, which is very stupid. I did just say that it installs into the folder you are in. Please pay attention to what people say.

and erm.. you got something against sun? they've huge bandwidth and all that.. why should you want it from anywhere else??

jolly 09-13-2001 02:58 AM

Quote:

Originally posted by acid_kewpie
.. you got something against sun? they've huge bandwidth and all that.. why should you want it from anywhere else??
I have nothing aginst Sun. As I am from India maybe thats why I am facing prob with Sun site. Could you please give me the url of anyother site where I can download Jdk
Even in sun site there are lot of jdk which one is stable and good. Please tell me/

Bert 09-13-2001 01:57 PM

getting java1.3.x
 
Try the original makers of the Java SDK (ahem, shh!) port to linux:
blackdown.org

jolly, I have no problems downloading updates of the sdk from their Asia mirror sites - if you can't be bothered going through the registration process on sun's site, I'm sure you can get copies from CDs attached to books, friends, relatives etc or try blackdown.

I think that IBM also has a port for linux called jikes and kaffe for the SDK and runtime binaries (from memory) - try a keyword search.

Problem with these is that they are not very current, at best supporting only Java 1.1 although on the plus side you will often find them bundled in with linux distibutions. Redhat 7 and 7.1 have these.

If you're looking to write applets in fact, this is probably ideal as it's about the only version which is natively supprted on most browsers (ie. the browser won't need to download from a sunsite).


All times are GMT -5. The time now is 08:27 AM.