http://www.cyberciti.biz/faq/howto-ubuntu-linux-install-configure-jdk-jre/
http://www.botskool.com/forum/computer-programming/linuxunix/install-sun-java-6-ubuntu-1004-jdk-jre
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
// this only generates error now: sudo update-java-alternatives -s java-6-sun
// there is no jvm file: gksudo gedit /etc/jvm
Verify that java is installed and working:
stan@stan-17-laptop:~$ gedit HelloWorld.java
stan@stan-17-laptop:~$ javac HelloWorld.java
stan@stan-17-laptop:~$ java HelloWorld
Hello, World!
stan@stan-17-laptop:~$ cat HelloWorld.java
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, World!");
}
}
Hi Stan
ReplyDeleteI would like you write for our website. http:/bit.ly/9UjVhD
What do you think?