Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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 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
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??
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/
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.