for friends of the acer aspire one
September 3, 2008
Installing Sun Java on Aspire One Linux
The AA1 ships with Fedora's own implementation of OpenJDK called IcedTea. It works for most applications and websites but it's not 100% compatible yet. Fortunately it's fairly easy to install the official Java version from the terminal.

wget -O jre-6u13.rpm.bin http://javadl.sun.com/webapps/download/AutoDL?BundleId=29209
sudo bash jre-6u13.rpm.bin


It is now installed, but the system is not aware of it yet. The following commands take care of that, just paste them into the terminal with Ctrl+Shift+V. You will have to paste a whole block at once, because the \ at the end of a line means it is continued at the next line.

sudo update-alternatives --install \
/usr/bin/java java /usr/java/latest/bin/java 20000

sudo update-alternatives --install \
/usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so \
/usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so 20000

sudo update-alternatives --auto java
sudo update-alternatives --auto libjavaplugin.so


Sun Java is now the default Java. You can also switch between all installed Java versions at any time using the commands below.

sudo update-alternatives --config java
sudo update-alternatives --config libjavaplugin.so


Or remove IcedTea completely.

sudo yum remove java-1.7.0-icedtea\*

To see if it actually worked visit this site, it should report Java 6 Update 13 as the installed version. You will have to restart Firefox first.
86



Anonymous
Hello, I've followed your instructions but I think it wasn't correct and you took it offline. But I already installed it..After the instructions were back online I did it again. It still doesn't work. How can I uninstall everything (including the changes towards the system recognise Java 6 upd. 7? Thanks in advance. This is the first time I have a question. the rest is briljant! Keep up the good work. Regards Bas
Sep 3, 2008 4:23:00 PM



I had the wrong download link, that's why i took it down for some minutes. Please paste the output of the commands below.

rpm -qa | grep java
rpm -qa | grep jre
sudo update-alternatives --display java
sudo update-alternatives --display libjavaplugin.so

Sep 3, 2008 4:31:00 PM



But the reason why i didn't work is probably because commands with an \ at the end are actually one line split up, so the whole block should be pasted into the terminal. I'll update the post about it once your issue is resolved.

Sep 3, 2008 4:36:00 PM



Anonymous
It works like a charm! How can I remove the remaining java installs? It's a bit overdone to have more installs...is it? Regards Bas
Sep 3, 2008 6:07:00 PM



You have the JDK and the JRE installed now. If you paste the output from the first two commands from above i can tell you how to remove them.

Sep 3, 2008 6:14:00 PM



Anonymous
The first:
java-1.5.0-gcj-1.5.0.0-17.fc8
java-1.7.0-icedtea-1.7.0.0-0.19.b21.snapshot.fc8
tzdata-java-2007h-1.fc8
java-1.7.0-icedtea-plugin-1.7.0.0-0.19.b21.snapshot.fc8
java_cup-0.10-0.k.6jpp.1
Second:
jre-1.6.0_07-fcs (is the last isn't it?)
Sep 3, 2008 7:00:00 PM



It appears the JDK didn't even install. If ls /usr/java only shows jre1.6.0_07 then all is well.

Sep 3, 2008 7:20:00 PM



Anonymous
Hi,
I checked /usr/java BEFORE installing anything and found the following:
ls /usr/java
default jre1.6.0_07 latest

So on my machine sun java (at least the JRE) is already installed.
Sep 6, 2008 4:21:00 PM



What version does the website linked in the post report?

Sep 6, 2008 4:37:00 PM



Your Blog is very useful and I enjoyed and used a lot.
Could you please introduce a good and light remote desktop server that can be installed on AAO so I can control AAO via another machine and using remote desktop.
Thanks so much.
Sep 6, 2008 5:07:00 PM



Anonymous
Hi,
Strange. Sun's applet test page works but reports that I am using a version of the JRE not yet released for general consumer use.Sun Java 1.7.0 on Linux.
My previous experience with iced tea was very bad. I doubt that it could run open office so I was not surprised to see Sun Java installed on the AA1. It seems to be some sort of custom installation since the applet test page cannot recognize it.
Jon
Sep 6, 2008 9:40:00 PM



That's IcedTea. I just switched back to check. You can also use sudo update-alternatives --config libjavaplugin.so and see which one is selected or to select a different one, but there is only IcedTea available on the default installation.

Sep 6, 2008 10:20:00 PM



Anonymous
Hi,
Could it be that both Sun Java and IcedTea are available. but that libjavaplugin.so is setup to be provided by IcedTea. I tried installing the Sun RPM, but it said it was already installed. Then I did your sudo update-alternatives commands and this got the Sun version of libjavaplugin.so working.

By the way the Sun dancing Duke looks much better with the IcedTea version, but IcedTea won't run some other applets I tried.
Jon
Sep 7, 2008 1:02:00 AM



What's the image version of your OS? You can check in the settings or by running cat /etc/linpus-release on the command line.

Sep 7, 2008 1:15:00 AM



Anonymous
Linpus Linux Lite v1.0.3.E
Sep 7, 2008 3:38:00 AM



I have no explanation why the files were already on the system then. They are neither included in version 1.0.3.E nor version 1.0.9.E of the image.

Sep 7, 2008 3:48:00 PM



Anonymous
You are right. I had installed it then forgot about it because it didn't work. So sorry for being an idiot!
Sep 7, 2008 4:16:00 PM



Anonymous
Thanks for this, I had the same problem and this fixed it - very useful.
Sep 8, 2008 4:52:00 PM



Anonymous
Hi, is there any way to access the java compiler in this java package?

ie javac
Sep 13, 2008 3:38:00 PM



It's in the JDK, available here.

Sep 13, 2008 3:55:00 PM



I recently ordered an Aspire One, and am glad that information and tips are so available. Glad you're doing this. The articles on FF3, java, etc. will likely be a great help.

However, I understand that some pieces of software, once upgraded or replaced, cannot be removed, due to dependencies- libraries, etc.

Would you perhaps be inclined to create and host or seed an .iso (er... or however it'll have to work via flash media) with these things slipstreamed, and with the dependencies fixed/redirected?

I'm sure it'd be a lot of work, but by the look of the site, that doesnt' seem to be much of an obstacle to you.
Sep 22, 2008 3:51:00 AM



Anonymous
Thank you for your instructions! I had problems getting the Facebook photo uploading applet to work and after removing Icedtea and also installing Java as per your instructions, I have successfully managed to get it to work.

This has been my first experience with Linux and I was sooo close to taking my A110 back to the shop because Linux has been difficult for me - but now that I have managed to get this working now I will be persevering with my machine.

Many many many thanks. :-)
Sep 28, 2008 8:28:00 PM



Anonymous
i would like to thank whoever you are, you have provide a great resources for my acer one. thanks alot!!
Sep 30, 2008 11:25:00 AM



Success ! Nice one macles !... I will admit to sometimes not knowing why I am doing this but hey it's all good fun and your posts / scripts are the most solid out there (from someone like others above who has never used linux before).

Keep up the good work..I for one have got you bookmarked !
Oct 4, 2008 11:43:00 AM



Anonymous
Same problem as previous poster - Sun's test page says I have the not supported version 1.7.0 - I have done as you suggested

sudo update-alternatives --config libjavaplugin.so

and made sure that it is not icedtea that is selected

I am also trying to upload photos to facebook, and it said Loading Applet, then Done, but still a grey box...

Do I need to uninstall IcedTea?
Oct 8, 2008 7:27:00 PM



Ste
HI i cant see youtube videos althought i have java installed i tryied to swicht between 3 java programm but with out solve my problem. I the config i have selected the last one:
There are 3 programs which provide 'java'.

Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
2 /usr/lib/jvm/jre-1.7.0-icedtea/bin/java
*+ 3 /usr/java/latest/bin/java


i have installed also the adobe flash player...
anyways youtube site says me that probably i have the java script disable!!

HELP
Oct 8, 2008 7:38:00 PM



wow, great info! just what I was looking for. I got the jre and all my applets now look great. Now I'll try the jdk and see if I can get processing up and running.
Oct 10, 2008 4:36:00 AM



Anonymous
I get the idea deleting IcedTea is not a good idea while there are dependencies not satisfied by jre 1.6 / 1.7. Is that true?

fabius
Oct 13, 2008 10:38:00 PM



Anonymous
hey some advice for people having problems
if you have an sd card pluged in then it wont work because the file paths are different. all you have to do
is remove the card and plug the sd into your other card reader and copy the rpm from the download folder on the sd to the download folder on the acers drive if it works when you copy the commands again you should see the sun micro systems terms and conditions hit enter till you get to the end and it will ask you if you agree to the terms type yes and you can the past the rest of the commands.
Oct 19, 2008 9:29:00 AM



Anonymous
my one doesn't recognize the command update-alternatives, any ideas please ?
Nov 8, 2008 5:27:00 PM



Are you running the commands from within a terminal?

Nov 9, 2008 4:53:00 PM



Big Thanks Your Post Work Now I playing games thank you
Nov 9, 2008 5:19:00 PM



Anonymous
yes, i right click desktop, i go root and i digit them, it tells me

update-alternatives: command not found
Nov 9, 2008 6:14:00 PM



It doesn't work from a root terminal, only from a user terminal.

Nov 9, 2008 6:39:00 PM



Anonymous
works like a charm, sorry for the waste of time, being a noob ....
thanks anyways
Nov 9, 2008 6:48:00 PM



This is great. Thanks for the tip.
Nov 13, 2008 7:32:00 PM



Anonymous
Hi to all,
I hope you can help. I have and Acer Aspire One and I am brand new to Linux. I love the aspire but I am having trouble with playing runescape. I would like to sort it and I understand that I have to do some Java stuff. I have read the above stuff but I am afraid that I don't really follow. I am really sorry to ask but could someone post me with a blow by blow of what I need to do? I noticed a lot of people talking about going into the "terminal" but I am not sure how to do this. Sorry that I am so new at this, just write as if you are explaining it to a 10 year old! Any advice would be great.
Thanks very much.
Nov 13, 2008 9:24:00 PM



The second paragraph here has instructions for opening a terminal.

Nov 14, 2008 1:03:00 AM



Anonymous
hi, i have tried all your directions and java has installed properly, but i can't get the system to be aware of it. i understand i need to enter each block of the second set of directions as a whole, however, i cannot copy and paste the command into the terminal. i can do it in other places, but i can't paste anything into the terminal. anyway, so i typed in the line exactly as it is, but nothing has happened
Nov 17, 2008 4:53:00 AM



Anonymous
sorry, does it work even with fedora 10 ?
Nov 27, 2008 10:18:00 PM



It seems there's a new version of Java out now: version 6 update 11. I didn't realize this fact until after I installed the version 6 update 10. What would be the best way to cleanly upgrade to the new version?
Dec 6, 2008 7:38:00 PM



Updates are available from http://www.java.com/en/download/manual.jsp, just copy the Linux RPM link and replace the one in the wget line. You can adjust the filename from 6u10 to 6u11, but it's not required as long as it's the same in the first and second line.

Dec 6, 2008 11:15:00 PM



Anonymous
I downloaded the full JDK from the Sun site and installed it so that I could compile Java programs. It ended up being installed in my home directory and I am unable to run it unless I change into the jdk bin directory. Where and how should it be installed so that it gets picked up in the path? Any help would be appreciated.
Dec 7, 2008 2:40:00 AM



Anonymous
Hi macles,




Can you also post an step by step procedure on how to install JAVA JDK, i want to use aspire one for java programming.



Thank you!
Dec 8, 2008 6:20:00 AM



Hi

Sorry to bother you, but I seem to have a small problem, I have done everything that you have written in the start of this message, and end up with removing IcedTea completely.

When I test it at java.com it saids that i'm using ver. 6.10, and thats ok.. I guess.

Now when I log on to my bank, firefox stall totally, I need to reboot My machine to get firefox working again.

Do you have any ideas what can cause the problem, if you do i will more than happy.

You can test it on www.danskebank.dk and then click log on (upper right corner) and use Netbank (ActivCard)

Thanks, best regards
Søren - Dk
Dec 15, 2008 8:06:00 PM



I think I got it.

I updated firefox to a ver 3. and now it is working

Best regards
Søren Panduro
Dec 16, 2008 8:36:00 PM



Anonymous
This is a great set of help. I got JAVA fully working using the initial set of instructions, deleting iced tea and installing version 3 of Firefox. Keep up the good work.
Dec 21, 2008 9:58:00 AM



Nicks
Hi, I followed your instructions putting the 5 seperate command prompts into the terminal but when checking the version on the java website it says "Java Runtime Environment is not working on your system"

If you need to see what I've downloaded you'll need to give me direction as I'm very new to Linux.

I managed to download firefox 3 using this method but no idea what I've done wrong.
Dec 25, 2008 7:35:00 PM



Anonymous
Hi there,
great work you have done there for newbies like me, a 1st time linux user. Initially i installed java updated it to the latest version and everything etc but the java applet in my internet banking page displayed it as "applet started" but i couldn't get it to work (it keep displaying "wait for java applet to load"). Nearly gave up after trying for 2-3 weeks. i even installed firefox 3.0.5 hoping it will work. Till i saw this post and i believe the last few command lines works wonders for me.

sudo update-alternatives --config java
sudo update-alternatives --config libjavaplugin.so

Thanks and keep and the good work. Hope to see more post from you!
Dec 26, 2008 9:42:00 AM



Anonymous
Thank you so much for this post! I bought the AA1 for my son for Christmas but he was devastated to find he could not play Runescape. Even I have been able to get it sorted after following your excellent instructions. THANK YOU!!
Dec 29, 2008 1:32:00 PM



Anonymous
hey i can see the java option in settings wen i right click on the xfce but my firefox 2 cant recognize it yet.....nd these commands dont progress
sudo update-alternatives --config java
sudo update-alternatives --config libjavaplugin.so
nd i have also uninstalled ice java thing??
plz can u help my firefox 2 recognize the java??
Dec 31, 2008 4:13:00 PM



Anonymous
this shows up wen put the last 2 commands in the terminal....
This may be freely redistributed under the terms of the GNU Public License.

usage: alternatives --install link name path priority
[--initscript service]
[--slave link name path]*
alternatives --remove name path
alternatives --auto name
alternatives --config name
alternatives --display name
alternatives --set name path

common options: --verbose --test --help --usage --version
--altdir directory --admindir directory

wat shud i do now
Jan 2, 2009 10:06:00 AM



bob job
u what?
Jan 2, 2009 9:54:00 PM



Anonymous
Hi There,

Happy new year!

May I point out that I think this is a great blog and really useful. I have followed everything that has been said but I'm still having problems with installing JRE on my acer aspire one. I installed the lateste Java and teh version you specified but my broweser is still telling me that I'm missing JRE. Please please can you help.


Thanks,
Yoni
Jan 2, 2009 10:16:00 PM



Anonymous
Hi,

Just installed firefox 3 and java following your blog. 10/10 - no hitches - just follow your instructions. Thanks
Jan 3, 2009 8:00:00 PM



Worked like a charm for me. Followed your instructions to the letter.
Jan 7, 2009 2:00:00 PM



Anonymous
Hi,

Thank you the guide worked very well and I have now installed Java but it says it isn't the latest version of Java, please could you let me know how to update to the latest version?

Also do you know any good sites where I could learn more about Linux, in particular Linpus as I am pretty new to this?

Many thanks for your time.
Jan 9, 2009 2:35:00 PM



Anonymous
Hi,
I used this post to get my facebook photo app working (like some earlier posters)
and it worked like a charm!

My problem now is that sidebar which shows the systems files (where you would browse for your photo files) isn't showing any photo folders nor are there any photo files coming up on the main viewing screen.

Any ideas on this little snag?

NeeNee
Jan 17, 2009 4:57:00 AM



Hi. I noticed that a few people had posted asking about the JDK and one person asked if a tutorial could be written to install.

I too had a problem trying to install the JDK or even finding someone to help out so I managed to install it myself after some effort and mostly bordom sat in my Java Programming lecture at University.

In the terminal:

Copy all of the following 5 lines (as I don't know how do overflow in the command line)

wget -O jdk-6u7-linux-i586-rpm.bin http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u7-linux-i586-rpm.bin?BundledLineItemUUID=tHpIBe.mLDAAAAEfLfVX2APt&OrderID=n.VIBe.mk5sAAAEfEPVX2APt&ProductID=XzBIBe.oxM4AAAEaVJcGcbZW&FileName=/jdk-6u7-linux-i586-rpm.bin

Then after the rpm.bin has downloaded install using the following:

sudo bash jdk-6u7-linux-i586-rpm.bin

Press enter to scroll through all of the agreement and then at the end type "yes" to confirm. This will then install the JDK and when unpacked everything will work find (or so I've found so far)

Enjoy!
Jan 23, 2009 2:55:00 PM



The link to the JDK is only temporary and times out after a while. You can get a new link from here.

Jan 24, 2009 1:45:00 AM



Anonymous
Showing ignorance here: how do I get to the command line?
Jan 25, 2009 9:21:00 PM



Anonymous
Well, finally discovered how to get to the command line -- just ignorance on my part. Question: how do I get release 10 of Java to be default, when I run ls /usr/java I get

default jre1.6.0_07 jre1.6.0_10 latest

Thanks so much
Jan 25, 2009 9:55:00 PM



Anonymous
Well, such an adventure. Finally the release 10 is default. Learned a lot from everyone and I extend many,many thanks to all who contributed; especially MACLES !!!
Jan 25, 2009 10:21:00 PM



Anonymous
works great :) thanks a million
Jan 27, 2009 12:19:00 PM



Anonymous
Bring on the trumpets!!!!!!!!!!!!!!
Jan 28, 2009 12:12:00 PM



Excellent! Many thanks for this!
Feb 9, 2009 8:40:00 PM



Anonymous
I typed sudo rpm -e jre-release-fcs to uninstall the older release after following macles* instructions where release is the version I wanted to remove.

e.g. the following command uninstalls Java 6 Update 10,

sudo rpm -e jre-1.6.0_10-fcs

Thank you, macles* for sharing your valuable expertise.
Feb 15, 2009 1:02:00 PM



hello,
i would like some assistance please because when i try running runescape it is saying it is done although it comes up with a black screen (on preferences and content i have enabled java and javascript) could someone please help me thanks a lot ill be back in touch =]
Feb 18, 2009 1:38:00 AM



Anonymous
for those who are trying to install java 12, do the same as you did for java 11, change the name and things, but the one for the 12 is longer.... eather rename the java file downloaded, it's located in home, if you go into the files map, or use what i think is :
jre-6u12-linux-i586-rpm.bin?e=1234923184856&h=ee9bc596d03e53623dc34309185fa644%2F&filename=jre-6u12-linux-i586-rpm

it's easyer just to delet all the other crap and just have jre.6u12-linux-i586-rpm.bin
im new to linux to, but this is simply logic. try to understand...
Feb 18, 2009 2:35:00 AM



hi,
hey people please could somebody give me all the exact instructions from scratch to download and install java onto my Linpus Linux Lite v1.0.9.E so i can play runescape!!!
thanks if anybody does so ill be back in touch and plzzz give me all the exact directions to put into terminal and how to open terminal!
Feb 20, 2009 4:56:00 PM



Anonymous
Hi there. I have an AA1 (linux limpus lite). I am running FF3 thanks to you Mr Macles! I am trying to update Java 6 to the latest version (12). I followed your instructions placing the name of the latest update in the wget code line then followed the rest of your code but my java is still shown as update 10? If you could help, thanks, Ben.
Mar 14, 2009 7:39:00 PM



Anonymous
Hi Macles. I just posted a request for help installing Java 6 update 12 but all I needed to do was reboot my system and it is now shown as installed. You are King of the Linux Jungle!! Ben
Mar 14, 2009 7:45:00 PM



Anonymous
Hi, I have installed as per above but it doesn't work. In fact no Java pages work. (Have Linpus Linux Lite v.1.0.11.E and Firefox version 2.0.0.14). What to do? Grateful for help. Hakan
Mar 17, 2009 5:56:00 PM



hazza
please can someone help me ive followed everything to the word i even removed iced tea
thing is i whent to the java page to test if it works and it says java is not working/installed on your computerand when i go to play runescape it says that i dont have java or that its disabled but ive checked and it is all enabled ive even got the java icon on xfce menu
Mar 20, 2009 1:32:00 PM



Anonymous
Hi everybody,

I have installed vlc using all of these instructions, but I've made a mistake somewhere down the line and have no idea how to detect it. Like many others I have sound but no video and I have followed all the instructions to fill in missing dependencies. I would like to remove VLC and start again. Could you tell me how to completely uninstall the programme?

Thanks very much.

Alex.
Apr 2, 2009 7:00:00 AM



I updated the instructions to use the most recent version.

Apr 18, 2009 4:13:00 PM



Anonymous
Sir, you are a bleedin' legend thank you :)
Apr 25, 2009 9:57:00 PM



Anonymous
I get this, when I try to switch after downloading the Java and restarting the browser (and whatever I do, the Java check page tells that I still have the Iced Tea-is there something I have done wrong or if not, what should I switch to?):

[root@localhost user]# sudo update-alternatives --config java

There are 2 programs which provide 'java'.

Selection Command
-----------------------------------------------
+ 1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
* 2 /usr/lib/jvm/jre-1.7.0-icedtea/bin/java

Enter to keep the current selection[+], or type selection number:
[root@localhost user]# sudo update-alternatives --config libjavaplugin.so

There is 1 program that provides 'libjavaplugin.so'.

Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-icedtea/lib/i386/gcjwebplugin.so

Enter to keep the current selection[+], or type selection number:


I do not dare to remove Iced Tea before I know for certain that Sun Java works!
May 12, 2009 8:03:00 PM



Anonymous
i have updated the java and runescape now loads but only the music it is a grey screen helpp?????
May 17, 2009 12:48:00 PM



Anonymous
ive got firefox 3 and now it says java is not installed on my borwser so ive tried to downloading it using the instructions and it doesnt work anymore please help asap i want to play runescape but am no longer able
May 17, 2009 2:23:00 PM



Anonymous
i have now no java and will not download somebody please help!!
May 17, 2009 2:43:00 PM



Anonymous
post what message it said, im new to linux but i may be able to help
May 18, 2009 3:44:00 PM



Anonymous
inflating: jre-6u13-linux-i586.rpm then it freezes and wont download?
May 18, 2009 4:40:00 PM



Anonymous
mine wont install well it says it has but system wont run it
May 31, 2009 9:00:00 PM



Anonymous
thank you! best site!
Jun 13, 2009 6:32:00 AM



Anonymous
hi macles

thanks for the instructions above, when checking on java using the above isn't the most up to date version so java.com tells me

is there any chance you can tell me how to update java when it has been installed

thanks as usual for ur help
Jun 25, 2009 12:28:00 AM