Partitioning
Create two primary partitions: create a 1.1 GB swap partition, and use the rest as Ext4 partition with mount point "/". Set the second one to "bootable".
Network setup
Modify /etc/network/interfaces. You should have two network interfaces (eth0 and eth1 where one is the NAT interface and the other one the vboxnet0 interface), but only one has been configured by the Ubuntu installer. Assuming eth1 is the vboxnet0 interface, the file should contain these contents:
...
auto eth0
auto eth1
iface eth0 inet dhcp
iface eth1 inet static
address 192.168.56.101
netmask 255.255.255.0
Replace 192.168.56.101 with your desired (static) IP address. After the modification, run "ifup eth1" to get the interface working.
Adding a repository for Sun Java:
Add the following line to /etc/apt/sources.list:
deb http://archive.canonical.com/ubuntu lucid partner
After this run apt-get update.