Archive for September, 2009

27
Sep
09

Install Eclipse Galileo/Ganymede on Fedora 11

Step 1:

Before installing Eclipse IDE,make sure you installed JDK/JRE.If you have not installed it,follow the instruction provided in the below link,

link

step 2:

Download the Eclipse IDE from eclipse download site,as tar.gz file.

step 3:

After the tar.gz file is downloaded,open the terminal and type

#tar xzvf filename.tar.gz

This will extract the file in the parent directory

step 4:

Move to eclipse folder,

#cd ~/eclipse

Open the eclipse.ini file,

#gedit eclipse.ini

The file will look something like this,

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

Now add the following lines before the ‘-vmargs’,

-vm
/[HOME-DIRECTORY]/jdk1.6.0_xx/bin/java

[ make sure you follow the same pattern as above,the path should be an absolute one starting from parent directory to the java,and replace ‘xx’ by the version you are using. ]

After adding the line,the file will look something like this,

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256m
-vm
/opt/jdk1.6.0_16/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

Now save the file and close it.

Step 5:

Now open the terminal and navigate to eclipse folder and type,

#./eclipse

Now your eclipse is ready.

27
Sep
09

Installing jdk/jre on fedora 11

Download the required version of jdk or jre from the below link,
http://java.sun.com/javase/downloads/index.jsp

Download the bin file,not the rpm,
ex : jdk-6u16-linux-i586.bin

[ SAME PROCEDURE IS FOLLOWED FOR BOTH JDK AND JRE, FOR JRE TO BE INSTALLED USE JRE INSTEAD OF JDK HERE]

After the download is over,move the file to opt,

# mv jdk-6u16-linux-i586.bin /opt

Change the file permission as executable as,[THIS HAS TO BE DONE AS ROOT USER]
# cd /opt
#chmod +x jdk-6u16-linux-i586.bin

Execute the file,

# ./jdk-6u16-linux-i586.bin

After the file gets executed,remove the file,

#rm -rf jdk-6u16-linux-i586.bin

Now open with gedit,

#gedit /etc/profile.d/java.sh

Now paste the following,

export JDK_HOME=/opt/jdk1.6.0_xx
export PATH=$JDK_HOME/bin:$PATH

[replace xx by the version of your jdk]

Now, type the following command to make that file available:

#source /etc/profile.d/java.sh

Then type,

#/usr/sbin/alternatives –install /usr/bin/java java /opt/jdk1.6.0_xx/bin/java 2
#/usr/sbin/alternatives –config java

After entering the above command,it will ask for which java version to be used,press the number of updated version

After that enter,

#java -version

This will provide the java version used.
Now your Fedora is ready for java files to be executed…..