java jdk in wrong place

Hi,

I installed Java in my D drive (Windows 7).  Then, I downloaded jdk-7u25-windows-x64.exe and did an install, except it didn't ask me where to put the installation (stupid Oracle), and automatically put in in C.  Now, I have the jre in my D drive and the jdk in my C drive. I need to define JAVA_HOME, but that seems to be 2 locations.

The jdk appears as an installed program (rather than just an unpacked directory), and I looked at my registry and there appear to be entries with the term jdk, so I doubt I can simply move the jdk from C to D.

How do I get the jdk on to D in the same directory as the jre?  Ideas?

Thanks!
LVL 11
ugebAsked:
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:
There should be a JRE that was installed as part of the JDK. Look in the jdk's folder on your c drive and you should see a jre subfolder. Therefore, you should be able to set your JAVA_HOME to the install location of the jdk and all is good.

As for getting that on to your D drive, I haven't done a jdk install in some time but I would be surprised if there was no way to select the install location. Prehaps the installer just doesn't make it obvious as to how to set that. Is there an option for a custom installation at any point in the installer, or an extra button on any of the installer pages that can see a location?
0
Jackie ManCommented:
0

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
ugebAuthor Commented:
Hi,

Thanks for the comments, they're both helpful.  I'm confused about a point mccarl brought up, though.

If I didn't have jre installed at all, and then installed the jdk, would the full jre be installed?

Would I be better off uninstalling all Java, and then reinstalling just the jdk so that the jre is installed with it?
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Jackie ManCommented:
Would I be better off uninstalling all Java, and then reinstalling just the jdk so that the jre is installed with it? YES
0
CEHJCommented:
You should be careful with the status of the jdk's jre. Browsers don't normally recognise it as 'the plugin'
0
ugebAuthor Commented:
Yes, that was my concern.  What's the proper installation look like then?
0
CEHJCommented:
If you're developing, you generally install a JDK and then the browser plugin separately
0
ugebAuthor Commented:
Thanks for the help.  One very important thing I discovered was that I needed to install BOTH 32 bit AND 64 bit versions in order for some software to work.  Seems really dumb, but oh well:)
0
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
Java

From novice to tech pro — start learning today.