Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Wednesday, November 26, 2008
Fedora 10 released!
Time to upgrade my "development mode" OS to the new version. Currently still in download progress. Can't wait to get it installed on my machine. =)
Sunday, December 2, 2007
How to install Sun's JDK in Fedora 8
By default, Fedora will use GNU's version of JDK which is gcj.
To verify this, check the version by running java -version in the console and it will return
something like this :
java version "1.5.0"
gij (GNU libgcj) version 4.1.2 20070925 (Red Hat 4.1.2-33)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
to install Sun's JDK on Fedora 8,
1. Download the Linux self extracting rpm version of JDK from Sun's website.
Let say the rpm name is jdk-6u3-linux-i586-rpm.bin
2. Fire up the console and change directory to where the downloaded rpm is located
3. Change to root by using su and enter your root's password
4. Change the permission of the file by using chmod 755 jdk-6u3-linux-i586-rpm.bin
5. Run the file using the command ./jdk-6u3-linux-i586-rpm.bin
6. Scroll all the way down and enter yes
7. Next, enter updatedb; locate javac |grep bin
It will show you a path to the newly installed Sun's JDK.
8. Next, run these commands
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_03/bin/java 100
/usr/sbin/alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_03/bin/jar 100
/usr/sbin/alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_03/bin/javac 100
9. Lastly, to change the default JVM from gcj to Sun's version, run this command
/usr/sbin/alternatives --config java
Select the one that is from Sun and that's it!
Edit: I forgot something. There's a bug but I'm not sure whether it's Sun's or Fedora's.
but here's the fix: enter this command:
sed -i 's/XINERAMA/FAKEEXTN/g'/lib/i386/xawt/libmawt.so
Edit 2: The bug seems to be caused by libx11 having problems with assertions.
upgrade libxcb via yum and it should be fixed. The version at the moment of this edit is libxcb-1.0-4.fc8
To verify this, check the version by running java -version in the console and it will return
something like this :
java version "1.5.0"
gij (GNU libgcj) version 4.1.2 20070925 (Red Hat 4.1.2-33)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
to install Sun's JDK on Fedora 8,
1. Download the Linux self extracting rpm version of JDK from Sun's website.
Let say the rpm name is jdk-6u3-linux-i586-rpm.bin
2. Fire up the console and change directory to where the downloaded rpm is located
3. Change to root by using su and enter your root's password
4. Change the permission of the file by using chmod 755 jdk-6u3-linux-i586-rpm.bin
5. Run the file using the command ./jdk-6u3-linux-i586-rpm.bin
6. Scroll all the way down and enter yes
7. Next, enter updatedb; locate javac |grep bin
It will show you a path to the newly installed Sun's JDK.
8. Next, run these commands
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_03/bin/java 100
/usr/sbin/alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_03/bin/jar 100
/usr/sbin/alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_03/bin/javac 100
9. Lastly, to change the default JVM from gcj to Sun's version, run this command
/usr/sbin/alternatives --config java
Select the one that is from Sun and that's it!
Edit: I forgot something. There's a bug but I'm not sure whether it's Sun's or Fedora's.
but here's the fix: enter this command:
sed -i 's/XINERAMA/FAKEEXTN/g'
upgrade libxcb via yum and it should be fixed. The version at the moment of this edit is libxcb-1.0-4.fc8
Subscribe to:
Posts (Atom)