Results 1 to 3 of 3
Thread: I broke my Java installation
- 05-15-2011, 07:01 AM #1
Member
- Join Date
- May 2011
- Posts
- 64
- Rep Power
- 0
I broke my Java installation
Hello, I uninstalled the JDK and the JRE on my windows system and reinstalled the JDK
I added my path environment variable.
But when I try to run it with > java test < I get an Error saying
Error: could not open 'C:\Program Files\Java\jre6\lib\amd64\jvm.cfg'
I looked in this location and found that the jre6 folder is missing but I found it in the jdk folder instead. so I copied it from there and placed it in the Java folder where the error says it tried to look for it.
It still doesn't work.
Can anyone help?
- 05-15-2011, 09:27 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
Better throw your current installation away too and reinstall the JDK again. The JDK also installs the JRE so there's nothing special you have to do. As you already found out the JDK also installs another JRE as a subdirectory of the JDK itself; stay away from that JRE, it is used by the tools in the JDK and it is not meant for general purpose use, that's what the other JRE is for. So when you install the JDK you get the JDK tools, a 'secret' JRE and a JRE that's for you.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 05-15-2011, 06:04 PM #3
Member
- Join Date
- May 2011
- Posts
- 64
- Rep Power
- 0
ok, thanks, I'm not sure why it didn't get installed when I installed the JDK. I did uninstall it and deleted any ramains of it from the folder. Then I reinstalled it but I got the same problem again. I gave up on trying to figure it out so I backed up all my files and reinstalled windows. That fixed it.
I have a feeling it has something to do with me messing around in my AppData folder. I only just came across this "Hidden folder" when I found that a new program was saving files that I needed access to there instead of saving them somewhere I could easily access them and while I was there, I was deleting some folders for programs I had uninstalled. I guess I must have deleted something the jre needed and wouldn't re-install without it being there. I could be completely wrong.
Similar Threads
-
About installation of Ide of java
By waqar100 in forum EclipseReplies: 0Last Post: 05-26-2010, 08:04 PM -
About installation of Ide of java
By waqar100 in forum New To JavaReplies: 1Last Post: 05-25-2010, 08:28 PM -
the installation assistant have been interrumped before the installation was complete
By frs80 in forum New To JavaReplies: 13Last Post: 01-24-2010, 10:58 AM -
java installation assistant have been interrumped before the installation finished
By frs80 in forum Java SoftwareReplies: 0Last Post: 01-18-2010, 02:57 AM -
Think I broke Eclipse trying to switch Java versions
By zacf in forum EclipseReplies: 4Last Post: 01-01-2009, 04:21 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks