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 |
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.
|
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 |
which java will give you your path to the version of java you're using.
|
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. :( |
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. |
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 ? |
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?? |
Quote:
Even in sun site there are lot of jdk which one is stable and good. Please tell me/ |
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. |