LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-11-2001, 08:24 AM   #1
jolly
Member
 
Registered: Mar 2001
Posts: 63

Rep: Reputation: 15
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
 
Old 09-11-2001, 09:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
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.
 
Old 09-12-2001, 10:41 AM   #3
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Rep: Reputation: 30
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
 
Old 09-12-2001, 01:41 PM   #4
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 438

Rep: Reputation: 30
which java will give you your path to the version of java you're using.
 
Old 09-13-2001, 12:36 AM   #5
jolly
Member
 
Registered: Mar 2001
Posts: 63

Original Poster
Rep: Reputation: 15
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.

 
Old 09-13-2001, 02:23 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
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.
 
Old 09-13-2001, 02:29 AM   #7
jolly
Member
 
Registered: Mar 2001
Posts: 63

Original Poster
Rep: Reputation: 15
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 ?
 
Old 09-13-2001, 02:40 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
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??
 
Old 09-13-2001, 02:58 AM   #9
jolly
Member
 
Registered: Mar 2001
Posts: 63

Original Poster
Rep: Reputation: 15
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/
 
Old 09-13-2001, 01:57 PM   #10
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use JDK in linux Manoj Walia Linux - Software 3 04-08-2005 04:22 AM
Installing JDK on Redhat Linux 7.2 pmnagral Linux - Software 0 01-27-2005 04:12 AM
getting jdk for linux. tiredoflogins Linux - Newbie 5 10-05-2004 01:23 PM
installing jdk-1_5_0-linux on slackware 10.0 xmeson Linux - Software 1 10-03-2004 10:01 PM
JDK binary file install marknyhan Linux - General 2 08-13-2001 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration