Tuesday, March 20, 2012

Getting Java for XUBUNTU 11.10

And another problem that took me hours to fix... how to get java working under xubuntu 11.10. You would think with all the changes that make ubuntu become windows, they would have at least preinstalled a fully working version of java... but no... go figure....
You can't even find the sun-java package in the software center... what a bunch of BS

So anywayyyy... 
Here's what you should do to get sun-java:

  • sudo apt-get install python-software-properties
  • sudo add-apt-repository ppa:ferramroberto/java
  • sudo apt-get update
  • sudo apt-get install sun-java6-jdk sun-java6-plugin

Ta-dah!!! 

If in case it didn't download the latest plugin, go to: http://www.java.com/en/download/manual.jsp?locale=en
 and follow the instructions by the Linux self extracting files:
  • create directory: mkdir /usr/java
  • move jre file to that directory: mv jre-6u31-linux-i586.bin /usr/java
  • make sure you have permissions: sudo chmod a+x jre-6u31-linux-i586-rpm.bin
  • install: sudo ./jre-6u31-linux-i586.bin

When it says Done!, it's installed!

If you use google chrome like me and you need to open a web java application, you need to open whatever your file is using javaws. You will find this in your path /usr/java/jre1.6.0_31/bin/javaws

If you still don't manage try to use openJDK instead!



No comments:

Post a Comment