This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Installing eclipse and java in Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Installing eclipse and java in Linux " Watch "Installing eclipse and java in Linux " New topic

Installing eclipse and java in Linux

Vipul Shinde

Joined: Sep 27, 2005
Posts: 6
I have java rpm : jdk-1_5_0_02-linux-i586.rpm

and eclipse IDE set up file :

Can any 1 tell me steps to install both java and eclipse.

Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
If you are new to linux, you can refer the Linux Manual on how to install a program from an rpm file. (Google for it! )

For eclipse, it is just a matter of unzipping the files to some selected folder.

ASCII silly question, Get a silly ANSI.
Peter Rooke
Ranch Hand

Joined: Oct 21, 2004
Posts: 801

For the Java red hat package:

i) Log in as root
ii) type

RPM should then install Java.

As Stuart said just unzip the file. you should then find the eclipse executable in the YOURPATH/eclipse directory.
[ October 24, 2005: Message edited by: Peter Rooke ]

Regards Pete
Vinnie Jenks
Ranch Hand

Joined: Apr 26, 2004
Posts: 207
On Gentoo, here's what I do.

execute the java bin you downloaded from Sun...which basically just extracts it to a folder.

Put that folder in /opt.

Create the file /etc/env.d/20java - put this in it (edit to your liking)


As for eclipse...unzip it and execute should be good to go.


Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

If you use your variables, you don't need to fear updates:

Well, and we don't need to


should be sufficient, while on my linux it would be /etc/init.d/java and a link to the runlevels /etc/rcX.d/S20java.
Peter Rooke
Ranch Hand

Joined: Oct 21, 2004
Posts: 801

You may find this site usefull: JPackage
Visit here to see how to set up a package manager, like yum or apt-rpm: Recent JPackage RPMs
Consider Paul's rocket mass heater.
subject: Installing eclipse and java in Linux
Similar Threads
Installing JDK on Linux.
Installing Tomcat on linux help needed.
How to build RPM in fedora 10 linux for java application
Apache RPM and Non Root user
advice on how to gain linux experience while working on window