ubuntu server java

I setup a ubuntu 64bit server, and I want to install java on it, but I want to make sure it is a 64bit version of java. My theory is that the 64bit version of java could use all the memory of my server better. It's just my theory, so maybe I'm wrong about that.
Also, I can't seem to find instructions on how to get a 64bit version of java
usually i use this command to install java

sudo apt-get install openjdk-7-jre

but i don't know if this is a 32bit version.
so if there is a way to install 64bit java using apt-get, that would be preferred because I like how apt-get gets all the dependencies.  
any ideas?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
From looking around it appears that there isn't any 64-bit version available from apt repositories. However, Java is a standalone install, ie. no dependencies, so the install process is relatively easy. If you are happy to go this way, here is a link (one of many found on Google) on the process, including a link to the Oracle website to download it.


Note, that this is for Oracle's (formerly Sun's) JRE/JDK as opposed to OpenJDK version. You may want to be take that into account if you have any particular requirements for one or the other. (Actually, there are even more vendor's suppling JRE's but those are the two most common for Linux)

is what you need (for raring). apt should already know it needs that if you have installed the correct packages for your architecture (and that architecture IS amd64)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JeffBeallAuthor Commented:
ok, I'll try those downloads,
so is my theory correct that if I use a software package written for a 64bit system on a 64bit system, I should be getting better use, or at least, more use of my memory?
I have 8gb of ram, and in the windows world, 32bit only uses roughly 4gb of ram.
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

so is my theory correct that if I use a software package written for a 64bit system on a 64bit system, I should be getting better use, or at least, more use of my memory?
Yes, your theory is right in the sense that more memory is available at one time and addressable.
JeffBeallAuthor Commented:
thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.