LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2009, 08:33 PM   #1
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Cool Any short cut to install java ?


I need to install java through command line , can any one suggest the command please ...?
 
Old 02-09-2009, 09:50 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
If you haven't already downloaded the package do it with;
Code:
wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=27973
then do;
Code:
chmod a+x jre-6u12-linux-i586.bin
and then;
Code:
./jre-6u12-linux-i586.bin
follow instructions.
 
Old 02-09-2009, 10:13 PM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
Install Sun Java 6

To install proprietary Java, you must have the Multiverse repository enabled. Click on System > Administration > Software Source > Select Multisource > Close
Adding the Universe and Multiverse Repositories

Open a shell prompt (terminal) and type the following to install JDK and JRE:
$ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-plugin
 
Old 02-10-2009, 04:56 PM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Yes,I've assumed that maybe all you need is java runtime environment.Actually,I wanted you to tell me what you need,because when you say "java",it can be a few things.The way craigevil suggested to install java is not a method from the command line only,but it's a easy way to install lets say "all" you'll need.

Last edited by alan_ri; 02-10-2009 at 10:22 PM. Reason: grammar
 
Old 02-11-2009, 01:29 AM   #5
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Cool Yeah ..

Actually i'm working on java project in eclipse , when i tried to compile the program thru command line it just showed command doesnt exist , so i tried a look .

And i come to knw that ceratin class paths and JAVA_HOME all are needed to make it work ..
 
Old 02-11-2009, 01:38 AM   #6
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
Is it working now?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Short-cut keys joeman3429 Fedora 2 02-27-2013 01:44 AM
Short Cut Keys sukhen Linux - Software 3 02-17-2006 01:26 PM
short(er) cut to using swaret. xushi Slackware 5 05-03-2004 07:50 PM
Short-Cut Keys sathiskanna LinuxQuestions.org Member Success Stories 1 09-09-2003 12:06 AM
Short-cut keys SnowSurfAir Linux - Hardware 4 04-04-2003 10:29 AM


All times are GMT -5. The time now is 12:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration