Link to home
Start Free TrialLog in
Avatar of ugeb
ugebFlag for United States of America

asked on

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!
SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ugeb

ASKER

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?
Would I be better off uninstalling all Java, and then reinstalling just the jdk so that the jre is installed with it? YES
You should be careful with the status of the jdk's jre. Browsers don't normally recognise it as 'the plugin'
Avatar of ugeb

ASKER

Yes, that was my concern.  What's the proper installation look like then?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ugeb

ASKER

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:)