Oracle JDK 7 with Maven and Eclipse

view full story

http://askubuntu.com – I'm running Ubuntu 12.04 I know this has been asked many times but I just recently switched to linux and I'm having a hard time piecing everything together. I have Oracle's JDK 7 running just fine from the command prompt but I'm not sure what the best way to install eclipse and maven are so that they will use it. Last time I tried installing eclipse with apt-get and it ended up installing openjdk6. How do I go about installing eclipse and maven so that they both are using oracle 7 jdk? Thanks! (HowTos)