GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes two jre folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "two jre folder " Watch "two jre folder " New topic
Author

two jre folder

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 375
I installed an older version of jdk under program file/java/. So it had "jdk6" and "jre6". I uninstalled it but the "jre6" folder didn't go away. I tried to delete it bbut got "check if disk is full or..." error, can't delete it. when I install a new jdk version it gives error. So when it asked me location for jre I use "jre6new", this time it works. So now I have "jre6" and "jre6new" folders under "java". Will this cause problem ? How does app know which jre folder it is using ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

When you install the JDK, it installs two JREs: one inside the JDK folder and another separate one. You need to uninstall that as well through the control panel.

As your Java installation may now be inoperable I would uninstall the JRE, then remove any remaining folders, then reinstall the JRE.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Rob Prime wrote:When you install the JDK, it installs two JREs: one inside the JDK folder and another separate one. You need to uninstall that as well through the control panel.

As your Java installation may now be inoperable I would uninstall the JRE, then remove any remaining folders, then reinstall the JRE.

i agree with Rob , and check in the task manager about javaw.exe process then end it this making you cant delete the folder


Thanks,
Sherif
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: two jre folder